Python Forum
Called Functions Not Working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Called Functions Not Working
#4
You really need to review functions, especially how to pass values with parameters and return to assignments with the return statement. See the functions tutorial link in my signature, below.

Also, time is a module. Doing time_1 = time just gives you a new name for the module, which goes away after the function ends. If you want to get the current time using the time module's time function, you want time_1 = time.time().
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Called Functions Not Working - by WhatAmIDoing09 - Jul-12-2019, 12:51 AM
RE: Called Functions Not Working - by SheeppOSU - Jul-12-2019, 01:40 AM
RE: Called Functions Not Working - by woooee - Jul-12-2019, 06:51 PM
RE: Called Functions Not Working - by ichabod801 - Jul-12-2019, 07:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple variable inputs when only one is called for ChrisDall 2 481 Oct-20-2023, 07:43 PM
Last Post: deanhystad
  Couldn't install a go-game called dlgo Nomamesse 14 3,072 Jan-05-2023, 06:38 PM
Last Post: Nomamesse
  how can a function find the name by which it is called? Skaperen 18 3,431 Aug-24-2022, 04:52 PM
Last Post: Skaperen
  function with 'self' input parameter errors out with and without 'self' called dford 12 3,075 Jan-15-2022, 06:07 PM
Last Post: deanhystad
  What is this formatting called? Mark17 2 1,765 Dec-14-2020, 08:42 PM
Last Post: snippsat
  Does anyone have unicurses panel functions working on a Windows 10 platform? pjfarley3 0 1,450 Oct-11-2020, 04:41 AM
Last Post: pjfarley3
  Class Instances called in the wrong order IanIous 4 2,807 Mar-06-2020, 02:16 PM
Last Post: IanIous
  How do you add the results together each time a function is called? Exsul 10 5,100 Aug-09-2019, 09:18 PM
Last Post: ichabod801
  Getting error when called through instance method aankrose 2 2,568 Mar-02-2019, 07:19 PM
Last Post: aankrose
  Working on nested functions boxerboy1168 2 2,583 Dec-28-2018, 07:54 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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