May-17-2017, 03:00 PM
My first defined function works, however I can't get my second defined function to work. I need my main function to access the upperCase function and then print everything in all caps. For example the user enters in hi, I need my program to convert that to HI. For the love of god I can't figure out where I am going wrong. Can anybody show me? Thanks.
Also, how can I get my program to run nonstop? I'm kind of new with looping.
Also, how can I get my program to run nonstop? I'm kind of new with looping.
def reverse(text): rev_text = "" for i in text: rev_text = i + rev_text return rev_text def upperCase(text1): text1 = s.upper() return text1 def main(): text = str(input("Enter a text: ")) print(reverse(text)) text1 = str(input("Enter a number again: ")) print(upperCase(text1)) main()