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.
In the <head> part of your HTML, you reference the CSS like this:
<link<span> rel="stylesheet" type="text/css" href="thecss.css"</span><span>>
</span>
If it is still not working, there could be many kinds of mistakes. Take it one step at a time and start simple, or share your HTML and CSS so we can have a look.
Answer:
def first_a(n):
lst1 =[x for x in range(1,n+1)if x%6==0 or x%11 ==0]
print(lst1)
Explanation:
Above is a function in python programming language. We have used list comprehension to check numbers that are multiples of 6 or 11 in a range.
When this function is called it will receive an argument (n) of type integer, a range will then be generated from 1 to n+1 since n is inclusive. The modulo operator is used to determine is a value is a multiple of 6 or 11, since their multiples will evaluate to 0