0
In python how to can i write a letter in a word in capital...!
suppose i have to write "orange" as "ORANGE"..!!
5 Answers
+ 6
Srishti
fruit = "orange"
print(fruit.capitalize())
had a few minutes so I created the following code.
https://code.sololearn.com/ce8CNTugQkAh/?ref=app
+ 4
print('orange'.upper())
+ 2
sorry my bad..!
i want to print
"orange" as "Orange"
only one letter?
+ 2
print('orange'.capitalize())