We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2a9bb8 commit 8ce6c39Copy full SHA for 8ce6c39
exercises/01.3-Print-the-last-one/solution.hide.py
@@ -0,0 +1,18 @@
1
+# import the random package here "import random"
2
+import random
3
+
4
+def generate_random_list():
5
+ aux_list = []
6
+ randonlength = random.randint(1, 100)
7
8
+ for i in range(randonlength):
9
+ aux_list.append(randonlength)
10
+ i += i
11
+ return aux_list
12
13
+my_stupid_list = generate_random_list()
14
15
+# Write your code below this comment, good luck!
16
17
+the_last_one = my_stupid_list[-1]
18
+print(the_last_one)
0 commit comments