Print function Flashcards

1
Q

What keyword tells Python to display something on the screen?

A

print

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Complete the line of code to tell Python to display the name of the oval object laid by a hen. (1 word, lower-case)
print________

A

(“egg”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Tell Python to display the letter “e”.

A

print(“e”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Tell Python to display the name of our planet. (1 word, lower-case)

A

print(“earth”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Tell Python to display the name of the star that makes life possible on earth. (1 word, lower-case)

A

print(“sun”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In a print statement, the characters surrounded by quotation marks are a text _______.

A

string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Tell Python to display the first three letters of the alphabet in upper-case.

A

print(“ABC”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Tell Python to display a string of your choice

A

print(“anything”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Tell Python to display your first name.

A

print(“your_name”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Tell Python to display the three-letter word for a canine. (1 word, lower-case)

A

print(“dog”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly