Python Programming Basics
English
Iniciante
A quiz assessing students understanding of basic Python.
Descrição
Tags
30
Perguntas
30 seg
Por pergunta
6:33
Tempo médio
3,0
Pontos no Concurso
3,5
Pontos da Comunidade
60
Participantes
* 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