Feb-11-2018, 09:47 PM
I am writing a code for homework, this isn't my code but the error is very similar:
import random def main(): random() print(t) def random(): import random t = random.randint(1,100) return t main()Why doesn't the 't' value return and get printed? When I run it, I get an error saying it's undefined. How can I fix this?