Python Programming Quiz
English
Intermediário
This online Python quiz is a fun way to check your learning progress and test your skills in programming.
Descrição
Tags
30
Perguntas
1 min
Por pergunta
5:58
Tempo médio
Desqualificado
Pontos no Concurso
3,8
Pontos da Comunidade
14
Participantes
Unfortunately, this test will not be able to receive a prize:
Not an original test. Questions, answers, explanations were copied from an existing test. E.g.: “#q6” <= https://everyscript.blogspot.com/2017/03/python-programming-part-3.html, “#q17” <= https://iot4beginners.com/python-quiz-3/, etc.
x, y, z = 3, 2, 1
z, y, x = x, y, z print(x,y,z)
is actually syntax error.
The result of the code:
x, y, z = 3, 2, 1
z, y, x = x, y, z
print(x,y,z)
is "1 2 3"
que -
x, y, z = 3, 2, 1
z, y, x = x, y, z print(x,y,z)
que error -
print should be in new line
-----------------------------
que :-
Which of the following is not a Python built-in function:
option error -
it should be isinstance not isinstanse
-----------------------------
que -
The following code:
def f(par2,par1):
return par2 + par1 print(f(par2=1,2))
no proper explanation -
It doesnt explain the error as shown in option.
------------------------------
The correct way of writing the code is here: https://ideone.com/eu5wwl
As you have noted, the print function should be written in the new line. The main reason is that Python language is one of the languages in which indentation is very important. So if you don't indent your code (in this case didn't write the print function in a new line) the code will have an error.