Python Programming Basics
English
Базовий
A quiz assessing students understanding of basic Python.
Опис
Теги
30
Запитань
30 сек
На запитання
6:33
Середній час
3,0
Результат у конкурсі
3,5
Оцінка користувачів
60
Учасників
* 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