“ciąg Python do wielkiej” Kod odpowiedzi

Python do wielkimi

text = "Random String"
text = text.upper() #Can also do 
text = upper(text)
print(text)

>> "RANDOM STRING"
Delta Sierra

Python do wielkimi

original = Hello, World!

#both of these work
upper = original.upper()
upper = upper(original)
DaWildOne

Jak sprawdzić wielki poziom w Python

an_uppercase_check = an_upper.isupper()
Stockholm

Upper Python python.org

text = "Random String"
text = text.upper()
print(text)
>> "RANDOM STRING"
Felipebros

Python wielki

# example string
string = "this should be uppercase!"
print(string.upper())

# string with numbers
# all alphabets should be lowercase
string = "Th!s Sh0uLd B3 uPp3rCas3!"
print(string.upper())
Unusual Unicorn

ciąg Python do wielkiej

# String to Uppercase by Matthew Johnson
myStr = "Dna"
print(myStr.upper())
#OUTPUT: "DNA"
Matthew Johnson

Odpowiedzi podobne do “ciąg Python do wielkiej”

Pytania podobne do “ciąg Python do wielkiej”

Więcej pokrewnych odpowiedzi na “ciąg Python do wielkiej” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu