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.
The purpose for a private is that if you don't want anyone to know your location, like if you live in a house and don't want people to know where you live. A public is if you do. Like for a business.
Answer:
what is typing: the action or skill of writing something by means a typewriter or computer
what is economic:a branch of knowledge concerned with production,consumption,and transfer of wealth.
Internet access can be done through several ways like the dial-up network access or broadband connection.
There are some technologies used to get into the internet like the modem or a (LAN) Local Area Network that can be wired or wireless.
Answer:
Following are the missing code to this question:
break;
Explanation:
In the given python code, a method "retry" is defined, that accepts two-variable, that is "operation and attempts" in its parameters, inside the method a for loop is defined that uses the n variable to holds attempt values and define the conditional statement.
- Inside if block, it checks if the operation value is true, it will print a successful attempts values and break the condition, otherwise it will goto else block.
- In the else block, it will print failed attempts values.