+ 3

How can I do this?

So if the input is "Hey" , the output should be "Hey" too and if the input is "Test1" , the output should be "Testing". How can I do this? Could someome code this for me?

28th Aug 2019, 8:55 PM
Wolfie
Wolfie - avatar
4 Respuestas
+ 5
The easiest way to do it would be taking in input using the input() function, storing it in a variable, and using an if/elif/else chain to test its value and print something accordingly
28th Aug 2019, 8:57 PM
Faisal
Faisal - avatar
+ 1
Yup, if/elif/else would do the job.
29th Aug 2019, 9:31 PM
Alice R
Alice R - avatar
0
Thanks <3
28th Aug 2019, 8:59 PM
Wolfie
Wolfie - avatar