Posts by Jorge Afonso • 1 point
2 posts
-
0
votes2
answers136
viewsA: Error whenever using max python function 3.6.1
Lack in print () That way you get the result you want: lst = [6, 10, 2, 1, 9, 35] lstord = sorted(lst) lstord.reverse() print(max(lstord))
-
-2
votes3
answers165
viewsA: Error with Random function
You’re misusing the function. example: from random import randint a = randint(1, 10) print(a) The range is missing.