+ 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 👑💎🕹📱📡 💪
AMIR  H  R 👑💎🕹📱📡 💪 - avatar
7 Answers
+ 2
doesn't work
15th Dec 2023, 9:03 AM
AMIR H R 👑💎🕹📱📡 💪
AMIR  H  R 👑💎🕹📱📡 💪 - 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 👑💎🕹📱📡 💪
AMIR  H  R 👑💎🕹📱📡 💪 - avatar
+ 2
text = input() print (text.upper()) this working thanks guy's
15th Dec 2023, 11:20 AM
AMIR H R 👑💎🕹📱📡 💪
AMIR  H  R 👑💎🕹📱📡 💪 - 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