Hi. Need help on this question. WILL GIVE BRAINLIEST IF RIGHT. However WRONG ANSWERS WILL BE REPORTED. Friend request will also be sent if wanted.
Write a program which will allow a user to enter their first name, and their favourite food. The program will then print out the sentence which includes the data they input, all in uppercase. For example:
“HENRY LIKES STRAWBERRIES”
Then print out the number of characters in the sentence (including spaces), e.g.:
“The sentence contains 24 characters” [5]
In your program code, you may need to make use of one or more of the following functions: len(), upper(), str()
For example:
notice = "No Entry"
numletters = len(notice) #puts 5 in numletters
newNotice = notice.upper() #puts "NO ENTRY" in newNotice
number = 12345
numberAsString = str(number) #puts "12345" in number as string
bbbbbbbbbbb