PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#Input your name and either 0 or 1 as a response to the question pertaining Sololearn course completion.
learner = input("What is your name: ")
learner = learner.title()
question = int(input ("\nHave you completed a Sololearn course thus far? (1 or 0): "))
if question not in range(2):
question = str(question)
if question == 1:
print ("\nWonderful " + learner +"! Attempt more Sololearn challenges and write own code like me.")
elif question == 0:
print ("\nPlease keep pushing " + learner + "! Attempting challenges gets more interesting after completing a course.")
else:
print (learner + ", your answer: " + question + " does not meet the two options available. Thus, the best is to start again!")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run