stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python Flashcards | StudBud
Explore
/
Python
What is a Variable?
What does # mean?
Python
11 terms
·
StudBud Administration
Imported from external platform
Flashcards
11 cards
F
Practice quiz
P
Host live
L
Questions
11
Answers
1
What does # mean?
A variable
A note to self, it doesn't impact your code
A secret number
Social media reference
2
What is a Variable?
When you can pick a value + 1
When you can enter any value
When you can pick a value
When the value is below 0
3
What is the purpose of the input() function in Python?
A) To display text on the screen
B) To take input from the user
D) To create a new variable
C) To perform mathematical operations
4
What is the correct way to print “Hello, World!” in Python?
B) echo "Hello, World!"
printf("Hello, World!")
System.out.println("Hello, World!")
print("Hello, World!")
5
print("Python is fun!")
D) Python is Fun!
Python is fun!
B) python is fun!
C) PYTHON IS FUN!
6
What does this line of code do? Print("Good Morning Year 6")
good morning Year 6
Good morning Year 6
Good Morning Year six
Good Morning Year 6
7
How do you take input from the user in Python?
read()
scanf()
input()
C) cin >>
8
Which function is used to display text on the screen in Python?
B) print()
A) display()
C) show()
D) write()
9
What does this do to my code? /n
New Line
double space
capitals
checks spelling
10
What will do line of code do? name=input("what is your name?")
What is your name??
What is your name?
What is your name?!
what is your name?
11
Is this an example of a variable? name=input("what is your name?")
True
False