the upcoming code takes text Data as input. write the code to convert it to uppercase and display in on the screen | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

the upcoming code takes text Data as input. write the code to convert it to uppercase and display in on the screen

item = "hello" "nasa" "bmw" print (item upper()) doesn't work no input

15th Dec 2023, 8:04 AM
AMIR H R A<ヾ(@^▽^@)ノ >LION 💪
AMIR  H  R A<ヾ(@^▽^@)ノ >LION 💪 - avatar
7 Réponses
+ 2
doesn't work
15th Dec 2023, 9:03 AM
AMIR H R A<ヾ(@^▽^@)ノ >LION 💪
AMIR  H  R A<ヾ(@^▽^@)ノ >LION 💪 - avatar
+ 2
Missing dot I guess like SoloProg said. item= "hello" "nasa" "bmw" This gives item the value 'hellonasabmw' which I don't really understand why And then print(item.upper())
15th Dec 2023, 10:28 AM
Tejas Shyam
Tejas Shyam - avatar
+ 2
text = "hello" "nasa" "bmw" text2 = text.upper() print(text2) doesn't work
15th Dec 2023, 11:07 AM
AMIR H R A<ヾ(@^▽^@)ノ >LION 💪
AMIR  H  R A<ヾ(@^▽^@)ノ >LION 💪 - avatar
+ 2
text = input() print (text.upper()) this working thanks guy's
15th Dec 2023, 11:20 AM
AMIR H R A<ヾ(@^▽^@)ノ >LION 💪
AMIR  H  R A<ヾ(@^▽^@)ノ >LION 💪 - avatar
+ 1
#Missing dot print (item.upper()) #or print (*item.upper())
15th Dec 2023, 8:48 AM
SoloProg
SoloProg - avatar
+ 1
Is it from the exercise "Survey Data Format"? It takes one input at a time. Save the input into a variable and then print the uppercase format.
15th Dec 2023, 9:14 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 1
text = input() text1 = text.upper() print (text1) #worked for me
12th Mar 2024, 11:54 PM
Vi A
Vi A - avatar