+ 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
8 Answers
+ 4
You have only 1 text, it says "nasa".
How do you accept input? Review the lesson.
+ 2
Is it from the "String Functions" lesson?
It supposes to take an input, and then print the uppercase of it.
+ 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
+ 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
+ 2
No
+ 1
Pls can anyone solve it. I tried but I can't
+ 1
Can you show a example
0
Is this on code coach Gayathri Rajendran?