You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Status/Day_10.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,3 +94,42 @@ def printList():
94
94
printList()
95
95
```
96
96
-------------------
97
+
98
+
# Question 34
99
+
### level 1
100
+
101
+
**Question:**
102
+
103
+
***Define a function which can generate a list where the values are square of numbers between 1 and 20 (both included). Then the function needs to print the first 5 elements in the list.***
104
+
105
+
----------------------
106
+
### Hints:
107
+
#### Use ** operator to get power of a number.Use range() for loops.Use list.append() to add values into a list.Use [n1:n2] to slice a list
0 commit comments