No student devices needed. Know more
5 questions
x=4
y=5
z=x+x
what is the output ?
20
10
8
9
myname="ahmed"
lastname="mohammed"
name=myname+lastname
print(name)
what is the output?
ahmed mohammed
ahmedmohammed
error
car-color="light,red"
print(car-color.split(",")
what is the output?
[light , red]
lightred
light red
error
name=" mostafa ismael"
print(name.strip())
what is the output?
mostafaismael
mostafa ismael
none of the choices is right
first=7
last=8
if(first!=last)
print("yes")
else
print("no")
no
yes
error
none of the choices is right
Explore all questions with a free account