Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User functions don't work:
#7
Thanks for your efforts. Can you give a description on how each function works?

for e.g. def getuser(users):
print('Select a user: ')
for pin_no, details in users.items()
print(pin_no, detals.Userdetails)

What is happening on line 3 and 4.
Also If you look at my code above, is it possible to use global variables instead of local variables and would this work.
Reply


Messages In This Thread
User functions don't work: - by Baldev10 - Aug-17-2020, 03:47 PM
RE: User functions don't work: - by ndc85430 - Aug-17-2020, 03:50 PM
RE: User functions don't work: - by Baldev10 - Aug-17-2020, 04:02 PM
RE: User functions don't work: - by ndc85430 - Aug-17-2020, 05:02 PM
RE: User functions don't work: - by Baldev10 - Aug-17-2020, 05:50 PM
RE: User functions don't work: - by deanhystad - Aug-17-2020, 09:15 PM
RE: User functions don't work: - by Baldev10 - Aug-18-2020, 04:22 PM
RE: User functions don't work: - by deanhystad - Aug-18-2020, 08:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Definitions in User-Created Functions and For Loops new_coder_231013 6 2,198 Dec-29-2021, 05:51 AM
Last Post: ndc85430
  Running scripts and location of saved interpreted user-defined classes and functions leodavinci1990 3 2,602 Aug-25-2020, 03:43 AM
Last Post: micseydel
  User defined functions inside other user defined functions WildP 1 1,987 Jan-29-2020, 04:57 PM
Last Post: Clunk_Head
  Parenthesis in User-Defined Functions giorgitsu 2 2,025 Aug-07-2019, 12:56 PM
Last Post: ThomasL
  Can't work out parameter format for LibVLC functions Domarius 10 6,093 Apr-30-2019, 10:54 PM
Last Post: Domarius
  Why won't this user created function work? Evyeniarocks 5 3,179 Mar-29-2018, 05:20 PM
Last Post: wavic
  I writte 5 functions (def) but on 6 don't work. Someone can help me? perrud 2 2,841 Feb-03-2018, 10:20 AM
Last Post: perrud

Forum Jump:

User Panel Messages

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