
python flashcard
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is a correct syntax to output "Hello World" in Python?
Back
print("Hello World")
2.
FLASHCARD QUESTION
Front
How do you create a variable with the numeric value 5?
Back
x=int(5) and x=5
3.
FLASHCARD QUESTION
Front
What is the correct syntax to output the type of a variable or object in Python?
Back
print(type(x))
4.
FLASHCARD QUESTION
Front
What is a correct syntax to return the first character in a string? Options: x=sub."Hello"[0], x="Hello"[0], x=sub("hello",(0,1)
Back
x="Hello"[0]
5.
FLASHCARD QUESTION
Front
What is python named after?
Back
Television show called Monty Python
6.
FLASHCARD QUESTION
Front
What does the print function do in python?
Back
It displays something like a string or integer.
7.
FLASHCARD QUESTION
Front
What symbol do you use to make a comment in Python?
Back
#
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?