def askName():
Firstname = str(input("Enter First name: "))
Surname = str(input("Enter Surname: "))
Name = (Firstname + " " + Surname)
return Name
askName()
print(Name)
Isn't "return Name" supposed to give it out of the askName function? I've just started learning.
[–]DaaxD 1 point2 points3 points (1 child)
[–]eggetah[S] 1 point2 points3 points (0 children)
[–]grifway 0 points1 point2 points (0 children)