SubhanUllah Posted October 4, 2022 Report Posted October 4, 2022 n = 1 print([x**2 for x in range(1, n+1)]) print([x**2 for x in range(1, 6)]) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.