How to define FOR Loop in Python?

How to define FOR Loop in Python?

This recipe helps you define FOR Loop in Python
In [1]:
## How to define FOR Loop in Python
def Kickstarter_Example_58():
    print()
    print(format('How to define FOR Loop in Python','*^82'))

    import warnings
    warnings.filterwarnings("ignore")

    for i in [10, 20, 30, 40, 50]:
        x = i ** 19
        print(x)

    else: print('All done!')

Kickstarter_Example_58()
*************************How to define FOR Loop in Python*************************
10000000000000000000
5242880000000000000000000
11622614670000000000000000000
2748779069440000000000000000000
190734863281250000000000000000000
All done!


Stuck at work?
Can't find the recipe you are looking for. Let us know and we will find an expert to create the recipe for you. Click here
Companies using this Recipe
1 developer from HvH
1 developer from Vodafone
1 developer from Altimetrik
1 developer from KPMG
1 developer from YASH Technologies
1 developer from ANAC
1 developer from LTI
1 developer from Experian
1 developer from MudraCircle