Python Forum
How can I get values inside of function?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I get values inside of function?
#1
I wrote these codes but there is a problem.

userid=(" ")
userpw=(" ")

def register():
a=input("Username: ")
b=input("Password: ")

How can I get these values from the function instead of userid and pw.
Reply


Messages In This Thread
How can I get values inside of function? - by Mysth - Dec-31-2018, 01:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  with open context inside of a recursive function billykid999 1 596 May-23-2023, 02:37 AM
Last Post: deanhystad
  How do I call sys.argv list inside a function, from the CLI? billykid999 3 815 May-02-2023, 08:40 AM
Last Post: Gribouillis
  Adding values with reduce() function from the list of tuples kinimod 10 2,743 Jan-24-2023, 08:22 AM
Last Post: perfringo
  function accepts infinite parameters and returns a graph with those values edencthompson 0 880 Jun-10-2022, 03:42 PM
Last Post: edencthompson
  Need to parse a list of boolean columns inside a list and return true values Python84 4 2,144 Jan-09-2022, 02:39 AM
Last Post: Python84
  Function - Return multiple values tester_V 10 4,535 Jun-02-2021, 05:34 AM
Last Post: tester_V
  How to make global list inside function CHANKC 6 3,140 Nov-26-2020, 08:05 AM
Last Post: CHANKC
  Parameters aren't seen inside function Sancho_Pansa 8 2,972 Oct-27-2020, 07:52 AM
Last Post: Sancho_Pansa
  Function parameters and values as string infobound 1 1,790 Jul-24-2020, 04:28 AM
Last Post: scidam
  Function to return list of all the INDEX values of a defined ndarray? pjfarley3 2 1,996 Jul-10-2020, 04:51 AM
Last Post: pjfarley3

Forum Jump:

User Panel Messages

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