Python - Basics and Execution Environment
Which of the following code snippets has correct indentation in Python?
def greet():
print('Hello')
print('World') has both print statements indented equally under the function, which is correct.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions