Answer:
I think its B bookName! = "Brave New World"
Explanation:
Answer:
print("\nWelcome to the impossible quiz!\n")
name = input("What's your name before we get started? ")
print("Nice to meet you, "+ name)
print("\nThe rules are very simple, get the answer right and you get 10 points. You only have one chance to get the answer right, get it wrong and you'll lose 3 points! ")
input("\nReady?\n")
user_score = 0
print("First question: Do slugs have four noses?")
answer = input('Give "F" for False or "T" for True: ')
if answer == "T":
time.sleep(2)
print("Correct, you've gained 10 points!")
user_score += 10
elif answer == "F":
time.sleep(2)
print("Incorrect, you've lost 3 points!")
user_score += -3
Explanation:
Please check the answer. However, if before answer was wrong, and we need to use time.sleep(2) for delaying printing.
Answer:
If a museum charges different prices based on the day of the week and age of the visitor. The pricing rules are shown below.
- On Tuesday and Thursday children 10 and under get in free ($ 0).
- For all other days and ages the cost is ten dollars ($ 10).
The code in python is;
if (day == 'Tuesday' or day == 'Thursday') and age <= 10:
price = 0
else:
price = 10
Explanation:
The logic of the algorithm suggests that that the conditional if-statement assigns zero to the price variable if the day variable is either Tuesday or Thursday and the child's age is 10 or below but assigns 10 to the price variable if the condition is not met.
Answer:
Reference
Explanation:
i don't know how to explain it but that's the answer