Computer Science, asked by azhankhan690, 3 months ago

Write a python program to display following series using iterative statements in python?
10
100
1000
10000

Answers

Answered by StylusMrVirus
1

\begin{gathered} \\ \Large{\bf{\pink{\underline{SoLuTiOn\::}}}} \\ \end{gathered}

As we mentioned earlier, the Python for loop is an iterator based for loop.

for <variable> in <sequence>:

<statements>

else:

<statements>

The items of the sequence object are assigned one after the other to the loop variable; to be precise the variable points to the items. For each item the loop body is executed.

Example of a simple for loop in Python:

>>> languages = ["C", "C++", "Perl", "Python"]

>>> for x in languages:

... print(x)

...

C

C++

Perl

Python

>>>

Similar questions