How to use an input function within another function? | SoloLearn: Learn to code for FREE!

0

How to use an input function within another function?

https://code.sololearn.com/cw0917AJr70s/?ref=app

3/7/2020 5:39:46 PM

Captian A

6 Answers

New Answer

+4

Same way you would use it. def fun(): name = input() print(name) fun()

+4

mytxt = myfunction(input()) or cleaner way str = input() mytxt = myfunction(str)

+2

language ?

+1

Python

0

any code ? i dont really inderstand what you're trying to do

0

def myfunction (x): return x[::-1] mytxt = myfunction("shjsnssns") print(mytxt)