Back to course home
0% completed
Vote For New Content
Quiz
What is the output of the following code?
print("Python"[1])
A
P
B
y
C
t
D
Python
What does the following code output?
text = "hello world"
print(text.title())
A
hello world
B
Hello world
C
Hello World
D
HELLO WORLD
What will be the output of the code below?
text = "Python3"
is_alnum = text.isalnum()
print(is_alnum)
A
True
B
False
C
Error
D
None
What does the split() method do?
text = "Python is great"
words = text.split()
print(words)
A
['Python', 'is', 'great']
B
'Pythonisgreat'
C
['Python is great']
D
None of the above
What does the following slice return?
print("Hello, World!"[7:12])
A
World
B
World!
C
, Worl
D
llo, World
.....
.....
.....
Like the course? Get enrolled and start learning!
Table of Contents
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible