Write a Python program to find the square of all elements between 1 to 20.
1 Like
for i in range(1, 21): print(i * i)
1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400
Answered By
3 Likes
Write a program to delete/remove all the numbers less than 10 from the list.
Write a Python program to find the largest element in a tuple.
Write a Python program to demonstrate the use of the if-elif-else statements.
Write a python program to print a pyramid using 'for' loop.