Python Programming Basics
English
Asas
A quiz assessing students understanding of basic Python.
Keterangan
Tag
30
Soalan
30 saat
Setiap soalan
6:33
Masa purata
3.0
Skor Pertandingan
3.5
Kedudukan Komuniti
60
Peserta
* 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