programming Flashcards
data type
-tells comp how to interpret value
boolean
True/false
integers
whole numbers
real
decimal
character
letter (A)
string
1+ numbers/letters
iteration
-repetition/loops
selection
-code executed when condition is met
subroutine
smaller sections of code written inside a larger program
nested structures
when one program is within anither
case conversion
upper- print(variable.upper())
lower- print(variable.lower())
title-print(variable.title())
length
print(len(variable))
if len(variable)><=
substring
-string[start character : end character]
-print(variable[n:] p- prints everything after n position
-first letter=0,last letter= -1
concatenation
-string3=string1 + string 2:
string1string2
-string3= string1 + “ “ + string2:
string 1 string2
casting
-converting me data ty9e to another