1/23
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
What is the arithmetic operator DIV in python?
Integer division. This is used in python arithemtic equations, and displays the answer to two integer or float/real data being divided by each other then rounds that answer to the nearest integer.
What is the MOD/module arithmetic operator in python?
It is used to display the remainder of when two integer or real/float data are divided by each other- it displays the answer in the data type integer. The symbol in python is ‘%’.
What is the arithmetic operator exporent in python?
It is used to raise an integer or real/float data to the power of another integer or real/float data.
How many data types are there in python?
5
What are the data types in python?
Integer, real/float, boolean, character and string
What is an integer data type in python?
Data that is whole numerical figures without a fractional part (decimal).
What is real/float data type in python?
Data that is numerical figures with a fractional part (these are decimals).
What is character data type in python?
Data that is a single alpha numerical character tha is not enclosed in speech marks eg a number, letter or numerical symbol.
What are strings in python?
A group of characters enclosed in speech marks.
What are variables in python?
Using the ‘=’ symbol, data can be assigned to a storage place to then be referred to as the name of that storage place throughout the rest of the program.
What is the symbol for multiplying in python?
*
What is the symbol for dividing in python?
/
What is concatination?
The programming technique used to join strings together. This is done in print statements using the plus sign. Eg: print (‘Hello’ + ‘World’)→HelloWorld
What are print statements?
Commands used in programming to display data on the screen.
What is the syntax for print statements?
print()
What is the syntax/command to identify the length of a string in python programming?
len(variable name)
What is indexing a string?
A programming function that allows the programmer to print a desired character from a string.
What is slicing strings?
A programming technique that allows the programmer to print a desired group of characters. The nunb
What is the syntax for indexing strings?
print(variable name [a:b]). The a and b represent the start of the printed letters and the end of the printed letters.
What is the syntax for slicing strings?
print(variable name(a)). The a represents the placement number of the letter that will be printed.
What is casting?
A programming technique, used to convert a variables data into another data type.
What command would you use to convert a data type to another data type?
For integers: int(“data”). For real/float: real(“data”) or float(“data”). For boolean: bool(“data”)
What is boolean data type?
Any data that represents one of two values - true or false.
What does the input command do?
It allows the user of a program to assign their own data to variables when interacting with the program.