MCQs > IT & Programming > Python > Which two of the following shell expressions in Python 3.4.2 will give syntax error? 10 * (1/0); 2 + char *3; while True print('Python'); print('4') + print('4'); while False; print('Python'); What will be the output of the below-given code in Python 3.4.2 shell? >>>str = 'example123' >>>str[::-1]

Python MCQs

Which two of the following shell expressions in Python 3.4.2 will give syntax error?


10 * (1/0);

2 + char *3;

while True print('Python');

print('4') + print('4');

while False; print('Python');



What will be the output of the below-given code in Python 3.4.2 shell?

>>>str = "example123" >>>str[::-1]

Answer

Correct Answer:

321elpmaxe'  

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it