squaring list elements

Sai_kiran_rachakonda · October 30, 2022
x = [2, 3, 4, 5, 6]
for i in x:
    print(i**2, end = " ")
Output

Comments

Please sign up or log in to contribute to the discussion.