Fill This Form To Receive Instant Help
Homework answers / question archive / Activity - Python Programming 1
Activity - Python Programming 1. Write a while loop that will accept 5 integers from the user, display each number and its cube. 2. Use a while loop to validate that an input value entered by a user is always between 0 and 100. 3. Use a while loop to display the first 100 integers, their squares and cubes. 4. Write a while loop that will display the first 20 Fibonacci numbers: 1,1,2,3,5,8, 13, etc., where a number in the sequence (except the first two) is the sum of the two numbers before it. 2= 1+1, 3=1+2, 5= 2+3, 8= 3+5, 13 = 5+8, etc. a. You start the first two numbers, initialize as first = 1 and second = 1. b. Within the while loop, i. calculate the third number using third =first + second ii. display the value of third iii. replace first with second iv. replace second with third.