Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function Import help
#3
variable t in def random is local variable (i.e. the scope in which it is visible/exists is function random).
As j.carter said you call random() on line 4, but ypu don't assign what it return to a variable to use it later on.
Reply


Messages In This Thread
Function Import help - by Codeforfood - Feb-11-2018, 09:47 PM
RE: Function Import help - by j.crater - Feb-11-2018, 09:58 PM
RE: Function Import help - by buran - Feb-12-2018, 12:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding a sqrt function syntax error and <build-in function sqrt> from tkinter import Kael 0 2,379 Oct-14-2019, 05:51 PM
Last Post: Kael

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020