Podcast
Questions and Answers
Which one of the following is not a valid data type in Python?
Which one of the following is not a valid data type in Python?
- int
- str
- bool
- chr (correct)
What is the output of the following Python code?
x = 5
print(x == '5')
What is the output of the following Python code?
x = 5 print(x == '5')
- None of the above
- True
- False (correct)
- Error
Which of the following is not a valid way to comment out a single line of code in Python?
Which of the following is not a valid way to comment out a single line of code in Python?
- '''This is a comment'''
- # This is a comment
- """This is a comment"""
- // This is a comment (correct)