#simple input
print('xiaoman li')
print('xiaoman'*8)

#case sensitive, wrong command
Print(str1)

input ('what is your name? ')
name=input('what is your name? ')
course = input('which course are you taking? ')
print(name + ' is taking ' + course)


print('xiaoman'*8)

#data type conversion
name = input('what is your name? ')
birth_year =input('what is your birth year? ')
age= 2023-birth_year
age= 2023 -int(birth_year)
print(age)
print(name[1:-1])
name.upper()


#another way to print non-string variables
msg = f'{name} is {age} old'
print(msg)

a = 4
b = 6
print(f"a = {a}, b = {b}")

a, b = 4, 6
c = d = 9

print(f"a + b = {a + b}")
print(f"a - b = {a - b}")
print(f"a * b = {a * b}")
print(f"a / b = {a / b}")
print(f"a % b = {a % b}")

#string operation
str1="I am in Florida, Central Florida."

x=5
print("the %s element in str1 is: " %(x))
print(str1[x])

lenStr1=len(str1)
print("the length of the str1 is: ")
print(lenStr1)
print('the length of the str1 is: %s' %(len(str1))
print(str1[3:7])
print(str1[3:7:2])

str1.upper()
print(str1.upper())
print(str1)
str2 = str1.lower()
print(str2)
print(str1)

str3 = str1.split(',')
print('Split str1 by , ')
print(str3)
str3[0]
str3[1]

str4 =';'.join(str3)
print('Join the splited strings together with ; ')
print(str4)
str4[0]
str4[1]
      
#If : else :
Str1.upper()
A= [1, 2, 3,4]
A.	replace()
B= (1,2 ,3,4)
input("what is this? ")



import math

matrix=[[1,2,3],[4,5,6],[7,8,9]]
matrix[0][1]


for item in range(5,10)
print(item)

coordinate =[1,2,3]
x,y,z= coordinate

def greet_user ()
