27 lines
434 B
Python
27 lines
434 B
Python
|
|
|
|
myList = [ 7, 5, 3, 9,11]
|
|
|
|
|
|
print("The list is ",myList)
|
|
print("The type is ",type(myList))
|
|
print("The length is ", len(myList) )
|
|
print("\n")
|
|
|
|
for dummy in myList:
|
|
print(f"{dummy:3d} {dummy**2:4d} {dummy**3:5d}")
|
|
|
|
print("Done!")
|
|
for listElement in myList:
|
|
print(f"{listElement:3d} {listElement**2:4d} {listElement**3:5d}")
|
|
|
|
print("Done!")
|
|
|
|
for x in myList:
|
|
print(f"{x:3d} {x**2:4d} {x**3:5d}")
|
|
|
|
print("Done!")
|
|
|
|
|
|
|
|
|