stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Duplicate of Python Basics Flashcards | StudBud
Explore
/
Duplicate of Python Basics
Duplicate of Python Basics
8 terms
·
StudBud Administration
A #Computer Science #quiz , to consolidate the #Python Basics
Flashcards
8 cards
F
Practice quiz
P
Host live
L
Questions
8
Answers
1
What do you use to make a complex 'if' statement?
'if', 'in' and 'else'
'while', 'elif' and 'else'
'if', 'elf' and 'else'
'if', 'elif' and 'else'
2
What do you use to make a simple 'if ' statement?
'if' and 'elif'
'else' and 'elif'
'while' and 'if'
'if' and 'else'
3
Why won't this program work correctly?
Capital 'P'
Extra line
Missing bracket [()]
Missing quotation mark ["]
4
How do you print "hello world" ?
print("hello world")
Print("hello world")
print(hello world)
print("hello world)
5
Why is this program incorrect?
print(hello there)
print("well done")
if name == "bob"
else:
6
Line 2 of this code is broken, choose the fixed line
name == Input("what is your name")
name = print("what is your name")
name == Print("what is your name")
name = input("what is your name")
7
How do you ask for a user's input?
user == input()
user(input)
user = input()
user = input("please input>>")
8
How do you convert "exe" from a string to an integer?
int = exe
int(exe
int(exe)
str(exe)