Question 1
Which function displays text in Python?
-
print() -
input() -
len() -
range()
Review Python questions for Computer Science, with correct answers shown and coverage across variables and data types; selection and iteration; functions and parameters.
print()
input()
len()
range()
input()
print()
int()
str()
#
//
/*
@
=
==
:
+
==
=
!=
>=
int
str
float
bool
str
int
float
bool
len("cat")?0
append() do to a list?for
while
if
def
range(3)?if
for
import
return
else run?bool
int
str
list
int("5") return?def
function
proc
return
return do?"cat".upper() return?"CAT"
"cat"
"Cat"
while
for
if
print
import
include
load
module
len([10, 20, 30]) return?Review Python questions for Computer Science, with correct answers shown and coverage across variables and data types; selection and iteration; functions and parameters.