NEW
Font size
WorksheetsPython
Total questions: 16
Worksheet time: 8mins
input
output
command
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
Python is a
text language
database language
programming language
Code for Hello, World!
print Hello, World!
print("Hello, World!)
print("Hello, World!")
Code for
257
Hello, World!
x = 257
y = "Hello, World!"
print(y)
print(x)
x = 257
y = "Hello, World!"
print(x)
print(y)
x = 257
y = Hello, World!
print x
print y
Insert the missing part of the code below to output
_________________ "My name is ".
Code for
b is greater than a
a = 33
b = 200
if b > a:
print("b is greater than a")
a = 33
b = 200
if b < a:
print("b is greater than a")
a = 330
b = 200
if b > a:
print("b is greater than a")
Python language use
upper case letters
lower case letters
upper and lower case letters
The output of the program
x = 4
x = "Sally"
print(x)
four
Saly
Sally
