Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:53 PM on 7/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

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.

2
New cards

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 ‘%’.

3
New cards

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.

4
New cards

How many data types are there in python?

5

5
New cards

What are the data types in python?

Integer, real/float, boolean, character and string

6
New cards

What is an integer data type in python?

Data that is whole numerical figures without a fractional part (decimal).

7
New cards

What is real/float data type in python?

Data that is numerical figures with a fractional part (these are decimals).

8
New cards

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.

9
New cards

What are strings in python?

A group of characters enclosed in speech marks.

10
New cards

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.

11
New cards

What is the symbol for multiplying in python?

*

12
New cards

What is the symbol for dividing in python?

/

13
New cards

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

14
New cards

What are print statements?

Commands used in programming to display data on the screen.

15
New cards

What is the syntax for print statements?

print()

16
New cards

What is the syntax/command to identify the length of a string in python programming?

len(variable name)

17
New cards

What is indexing a string?

A programming function that allows the programmer to print a desired character from a string.

18
New cards

What is slicing strings?

A programming technique that allows the programmer to print a desired group of characters. The nunb

19
New cards

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.

20
New cards

What is the syntax for slicing strings?

print(variable name(a)). The a represents the placement number of the letter that will be printed.

21
New cards

What is casting?

A programming technique, used to convert a variables data into another data type.

22
New cards

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”)

23
New cards

What is boolean data type?

Any data that represents one of two values - true or false.

24
New cards

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.