Write a program that uses a for loop and the range function
Types of Loop
Loops are the elements of programming in which a part of code is repeated a particular number of times. Loop executes the series of statements many times till the conditional statement becomes false.
Loops
Any task which is repeated more than one time is called a loop. Basically, loops can be divided into three types as while, do-while and for loop. There are so many programming languages like C, C++, JAVA, PYTHON, and many more where looping statements can be used for repetitive execution.
While Loop
Loop is a feature in the programming language. It helps us to execute a set of instructions regularly. The block of code executes until some conditions provided within that Loop are true.
Need help with Python - program4_1.py
Write a program that uses a for loop and the range function to generate a table of areas and circumferences of 10 circles with radii from 10 to 100 in increments of 10. See Required Output below. The radii should display centered in a column 10 characters wide with 1 decimal place. The areas should be centered in a column 14 characters wide with 4 decimals and the circumferences should be centered in a column 18 characters wide with 3 decimals. For full points, include centered column headings as shown.
Required Output
Step by step
Solved in 4 steps with 2 images