Fetch
Decode
Explain
Activities
Flashcards
Exam Questions
Revise
Blog
Contact
Login
Login
Menu
Activities
Flashcards
Exam Questions
Revise
Blog
Contact
Login
Flashcards
KS3 Computing
Python Programming
Data Types
Card
1
of
16
0
got it
0
still learning
Question
Evil question
Tap
Click or press space
to see the answer
Answer
Still learning
Got it
Turn over
Shuffle
0%
Round complete
Go again with the ones I'm still learning
Start the whole set again
Choose another set
All 16 cards in this set
What is meant by a data type in Python?
The kind of value that a piece of data is
Which term describes data that is written inside quotation marks in Python?
Text
What is meant by an integer?
A whole number that can be used in calculations
Which term describes joining two pieces of text together in Python?
Concatenation
What does the int() function do to a piece of text?
Turns the text into a whole number
What is the result of '12' + '13' in Python?
1213
Which line of code makes Python add the values together to give 90?
print(45 + 45)
What happens when this program runs?
The program stops with an error
What type of value does input() always store?
Text
A program stores a value with score = input('Score: '). The value must then be used in a calculation. What should be done?
Using int(score) so the value becomes a whole number
A program needs to store the number a user types as a whole number at the moment it is stored. Which line does this?
The line score = int(input('Score: '))
A program asks for the name of a town and stores the answer. Which line should be used?
The line town = input('Town: ')
This program stops with an error. Which change makes it print 175?
Removing the quotation marks from 55
A program stores score = input('Score: ') and then compares it with the number 50. Why must int() be used?
Because input() stores the score as text
A program stores a name with name = int(input('Name: ')). The user types Sam. What is the result?
The program stops with an error
The user types 8 when this program runs. What is the result?
10