title: Moving values from one function to another - Python
body: <p>I am learning about python and I want to transfer some value from one function to another.</p>
  <p>If you look below. I want to transfer the user input from the first function and then automatically transfer that to the next function to reverse the text. I am looking for some guidance here. I am new to programming so please forgive me if I have done something silly.</p>
  <p>#Below function takes the users input and stores it</p>
  <p>def stringreverse():
  stext = input(&quot;What is the value you want to reverse?&quot;)</p>
  <p>return stext</p>
  <p>stext = stringreverse()</p>
  <p>#This function reverses the string input from the previous function
  def reverse(stext):
  return stext[::-1]</p>
  <p>stext = reverse()</p>
  <p><a href="https://replit.com/@apatel84/FirstNameSurname#main.py" rel="nofollow noreferrer">This is the code online - Repli</a></p>