I just started python 3, and it’s my first language. This is my first attempt at anything, and I came up with the if statements and random.randint without looking up how to make rock paper and scissors, so the whole system is very flawed. That being said, it runs beautifully on my phone, how doesn’t work for my calculator. It says something about how there is no attribute for randint, and I checked forums and they said that I must have a file already named random, but I don’t anywhere on the device. What do I do? For some reason the app I use won’t let me copy the code, but the best I could do was a link, the code is: https://codeplayground.app/?s=cPTCDE5g4U4DBoL7UfAFkc And the error message is: AttributeError: 'module' object has no attribute 'randint'
Edit- Sorry about improper etiquette, I do not know how to ask questions here this is my first one. Also, just to clarify, no files are named random, and this particular file was name “RPS” standing for Rock Paper Scissors
Aucun commentaire:
Enregistrer un commentaire