0

In python how to can i write a letter in a word in capital...!

suppose i have to write "orange" as "ORANGE"..!!

24th Sep 2020, 2:14 PM
Srishti
Srishti - avatar
5 Respostas
+ 6
Srishti fruit = "orange" print(fruit.capitalize()) had a few minutes so I created the following code. https://code.sololearn.com/ce8CNTugQkAh/?ref=app
24th Sep 2020, 2:36 PM
BroFar
BroFar - avatar
+ 4
print('orange'.upper())
24th Sep 2020, 2:17 PM
Ruba Kh
Ruba Kh - avatar
+ 2
sorry my bad..! i want to print "orange" as "Orange" only one letter?
24th Sep 2020, 2:28 PM
Srishti
Srishti - avatar
+ 2
print('orange'.capitalize())
24th Sep 2020, 2:29 PM
Ruba Kh
Ruba Kh - avatar