I'm creating a simple module that have a cin and cout functions. This will accept the user input and
display it afterwards.
Just like this:
text = napster.comein("Enter a number: ")
napster.getout(text)
I have a problem in the function code because I'm an amateur in python programming.
This is my idea:
def comein(string):
str = string
string = input(string)
def getout(string):
print string
What is the correct syntax in recalling the input of the user in the comein function?
I'm really confused about that.