+ 1

Can anyone solve survey data format in python

text = 'nasa' print(text.upper()) #convert to uppercase #display on the screen for hello,nasa,bmw,bingo

23rd Jul 2024, 2:03 AM
Gayathri Rajendran
Gayathri Rajendran - avatar
9 Respostas
+ 4
You have only 1 text, it says "nasa". How do you accept input? Review the lesson.
23rd Jul 2024, 5:58 AM
Ausgrindtube
Ausgrindtube - avatar
+ 2
Is it from the "String Functions" lesson? It supposes to take an input, and then print the uppercase of it.
23rd Jul 2024, 5:24 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 2
Gayathri Rajendran I can help you by telling me what you should do •First take input •Store the each value in a list •Perform upper function on each of them •Then output the result Now you should figure it out yourself how to do each task Is still having any doubt then you can ask
23rd Jul 2024, 7:49 AM
Hacker Badshah
Hacker Badshah - avatar
+ 2
Gayathri Rajendran Okay Like I wanted to take input numbers and add 5 to them #taking input and splitting each value by comma nums = input().split(',') #adding 5 to each element new_nums = [int(i) + 5 for i in nums] #output the result print(new_nums) Now you should try yourself and if any doubt first present your code you tried
23rd Jul 2024, 8:15 AM
Hacker Badshah
Hacker Badshah - avatar
+ 2
No
24th Jul 2024, 3:09 PM
Gayathri Rajendran
Gayathri Rajendran - avatar
+ 1
Pls can anyone solve it. I tried but I can't
23rd Jul 2024, 2:03 AM
Gayathri Rajendran
Gayathri Rajendran - avatar
+ 1
Can you show a example
23rd Jul 2024, 7:59 AM
Gayathri Rajendran
Gayathri Rajendran - avatar
0
Is this on code coach Gayathri Rajendran?
23rd Jul 2024, 7:01 PM
Harimamy Ravalohery
Harimamy Ravalohery - avatar
0
text = input() #convert to uppercase text2 = text.upper() #display on the screen print(text2)
2nd Nov 2024, 9:39 PM
Fatih Urgen