0% found this document useful (0 votes)
4 views1 page

Python Programming Concepts Explained

Uploaded by

katagiriisnotgay
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Python Programming Concepts Explained

Uploaded by

katagiriisnotgay
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

variables = a container for a value.

BeHaves as the value it contains


typecasting = converts the data type of a value to another data type
string slicing = create a substring by extracting elements from another string
if statement = a block of code that will execute if it's condition is true
logical operators = (or,and,not)=used to check if two or more conditional
statements is true
while loop = a statement that will execute it's block of code,as long as its
condition is true
for loop = a statement that will execute it's block of code a limited amount of
times
nested loop = The "Inner loop" will finish its iteration before finishing one
iteration of the "outer loop"
loop control statements = change a loop execution from its normal sequence
- break = used to terminate loop entirely
- continue = skips to the next iteration of the loop
- pass = does nothing act as a placeholder
list = used to store multiple items in a single variable,parenthesis = []
2d lists = a list of lists

You might also like