Exercise 1:
name = input("Please input your name:")
print("Your name is: ",name)
Exercise 2:
print("This is a rectangular area calculation program. The units of length and width are meters, and the unit of area is square meters.")
length = int(input("Please input length of the rectangle:"))
width = int(input("Please input width of the rectangle:"))
acreage = length*width
print("Length is ",length,", width is ",width,", area is ",acreage)
[…] 2 Print| |____Unit 3 Magic Variable| |____Unit 4 Basic Operations| |____Unit 5 Data Types| |____Unit 6 Data Input| |____Unit 7 GUI design I| |____Unit 8 GUI design II|____Python Level 2| |____Unit 9 bool data type […]