Python Programming Basics
English
Basic
A quiz assessing students understanding of basic Python.
Description
Tags
30
Questions
30 sec
Per question
6:33
Average time
3.0
Contest Score
3.5
Community Rating
60
Participants
* syntax error
* logic error
* run-time error
* binary error
Explanation: A TypeError occurs when an operation or function is applied to an object of inappropriate type.
Why explanation is about TypeError but options are other errors?
MyName = ("Horatio") is also correct answer: https://ideone.com/ey79aL
Actually, after running these codes, there will be extra output: "Please enter a number:" and "Welcome...\n***...\nPress..." respectively
while True: ...
Here, loop will run forewer. Probably you skipped 2 indents (in 2 last lines).
Analyze the given code
This code will give SyntaxError because of Demo(''Hello''), there is two apostrophes on each side of Hello
Proof: https://telegra.ph/3-same-questions-in-two-quizzes-05-28