I have a function that receives a text, however I would like to store that same text in a variable but I don't know how to get it out of there.
aprender(input("Ingresa(Yo soy Lola): "))
That is, whatever is entered is stored in a string variable.
texto_del_input=""
I've searched the internet and haven't seen a solution to this.
To save the data received from an input inside a variable
Example:
If you want to pass that text that is inside a variable to a function, you call the function and pass the variable as a parameter.
Example:
I define the function greet
I call the function and pass the parameter
Screenshot https://prnt.sc/x7tvkm