Lecture 4: Activity 4.1
Perform the following operations in the Jupyter environment. colors = [‘blue’, ‘pink’, ‘grey’, ‘brown’]x=len(colors)for m in range(x):print(colors[m]) for m in range(0,20):print(m) for m in [‘A’,’B’,’C’,’D’,’E’]:print(m+’D’) What is the difference between for and while loop
Lecture 2: Activity 2.2
Perform the following operations in the Jupyter environment. 50+25 48-23 625*223 60/6 17893/114 50*100-200+4**3 Perform the following operations in the Jupyter environment. height = 5 weight = 75 BMI = weight height**2 BMI: output What will be the BMI when the height is a) 6 b) 7 […]
Lecture 2: Activity 2.1
Check the Data Type in the Python environment type(23) type(23.3) type(“Calabar is good for tourism”) Boolean Values int(False) int(True) bool(1) bool(0)