Debit Accounts Payable/Bill's Marina, $595Credit
Accounts Payable/Bill's Marina, $595
Credit Cash $595
Debit Accounts Payable/John Slow, Inc., $595
Answer:
while True:
s = input("Enter a word: ")
if s != "":
reversed_s = ''.join(reversed(s))
if s == reversed_s:
print(s + " is a palindrome")
else:
print(s + " is not a palindrome")
else:
break
Explanation:
- Initialize a while loop that iterates until the user enters an empty string
- Ask the user to enter a word
- If the word is not empty, reverse the word
- Check if reversed word is same as the original word. If they are same, then the word is a palindrome. If they are not same, then the word is not a palindrome.
Answer:
Navigation Hallway and Cafe
Answer:
The expression on line 9 required 2 brackets
Explanation:
Given
The attached code
Required
Why syntax error.
The error points to line 10, but the error is actually from line 9
To get an integer input, the syntax is:
variable-name = int(input("Prompt"))
From the attached code, the line 9 is:
amount = int(input("Enter cheese order weight: ")
By comparing the syntax to the actual code on line 9, only 1 of the brackets is closed.
<em>This, in Python 3 is a sytax error</em>
Well, if he's using Google Drive or OneDrive it shows up in the main menu so My best guess would be Local Profile