Posts by Ruben Maurício • 53 points
2 posts
-
1
votes3
answers165
viewsQ: Error with Random function
This is the code I wrote in Python: from random import randint a = randint print(a) When using the function randint in this simple code, the console gives me the following error: <bound method…
-
4
votes1
answer536
viewsQ: How to check if a string is inside a string set?
In the code below I have the set of strings ('M', 'F') and soon after I ask the user to enter their gender so that the value is recorded. valores = ('M','F') print(valores) sexo = str(input('Digite…