NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
Python Programming: From Beginner to Production
Getting Started with Python
Quiz
Chapter Quiz: Getting Started with Python
Getting Started with Python
Complete this assessment with 100% score to master this chapter.
01
Which function is used to display text in the console in Python?
echo()
console.log()
print()
write()
02
How do you start a single-line comment in Python?
//
/*
--
#
03
Why is indentation important in Python?
It makes the code look pretty
It's optional in Python
It defines the structure and blocks of code
It's only used for comments
04
What command opens the Python interactive REPL in the terminal?
python run
python --interactive
python
start python
05
Which of these is a valid way to print multiple values with a custom separator?
print('Hello', 'World', separator='-')
print('Hello' + '-' + 'World')
print('Hello', 'World', sep='-')
print('Hello-World', join=True)
Submit Answers
Back to Lesson
Next Chapter