Docsity

Python Programming Fundamentals: Exercises on Loops, Data Types, and Control Structures, Exams of Advanced Education

Toggle sidebar
bg1
Python code study material
There are 2 types of loops - While loops and for loops
Strings are _______ - A set of characters found inside of quotation marks
Putting the term "int" in front of a string makes it a _____ - Integer
Functions don't work unless _____ - They are called on
Integers are _____ numbers and floats are ______ numbers - Whole, decimal
Python follows what operation when it does math? - PEMDAS
Booleans answer _____ or ______ questions - True, False
if statements are made to _______ - see if something is true
if conditioned decides _____ - If an action is going to be followed
else conditions ______ - Tell a program what to do if it hasn't met any other condition
loops use ______ brackets - square [ ]
/n causes what to strings? - It causes a break in the lines
While loops are _____ - infinite
For loops _____ - loop a set amount of times
to ask if a number is equal to another, you need to put _____ equal signs - 2
putting triple quotes causes _____ - Text to display as it is written in the code

Partial preview of the text

Download Python Programming Fundamentals: Exercises on Loops, Data Types, and Control Structures and more Exams Advanced Education in PDF only on Docsity!

Python code study material

There are 2 types of loops - While loops and for loops Strings are _______ - A set of characters found inside of quotation marks Putting the term "int" in front of a string makes it a _____ - Integer Functions don't work unless _____ - They are called on Integers are _____ numbers and floats are ______ numbers - Whole, decimal Python follows what operation when it does math? - PEMDAS Booleans answer _____ or ______ questions - True, False if statements are made to _______ - see if something is true if conditioned decides _____ - If an action is going to be followed else conditions ______ - Tell a program what to do if it hasn't met any other condition loops use ______ brackets - square [ ] /n causes what to strings? - It causes a break in the lines While loops are _____ - infinite For loops _____ - loop a set amount of times to ask if a number is equal to another, you need to put _____ equal signs - 2 putting triple quotes causes _____ - Text to display as it is written in the code