Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

lower upper in pytho

myString = "Hello"
myString.upper() #returns "HELLO"
myString.lower() #returns "hello"
Comment

python uppercase

my_string = "this is my string"
print(my_string.upper())
# output: "THIS IS MY STRING"
Comment

string upper lower count python

# count uppercase,lowercase,digits and special characters.
a=input('enter the string:')
u=l=d=s=0
for i in a :
    if i.isupper():
        u+=1
    elif i.islower():
        l+=1
    elif i.isdigit():
        d+=1
    else:
        s+=1
print('if the string is upper',u)
print('if the string is lower',l)
print('if the string is digit',d)
print('if the string is special',s)

#output:
'''
enter the string: 'Hii Buddy! How Have You BEEN , Welcome To PYTHON....
if the string is upper 17
if the string is lower 20
if the string is digit 0
if the string is special 17
'''

Comment

python string to uppercase

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

how to convert lower case to upper case in python

a = "Hello, World!"
print(a.upper())
#output: HELLO, WORLD!
Comment

PREVIOUS NEXT
Code Example
Python :: get dataframe name python 
Python :: create dictionary python having hash value 
Python :: How to perform heap sort, in Python? 
Python :: list python 
Python :: python ascii art 
Python :: df read csv 
Python :: How to select element using xpath in python 
Python :: get end of string python 
Python :: python path absolute 
Python :: what is repr function in python 
Python :: Python Loop Usage 
Python :: max of a list in python 
Python :: why is python so popular 
Python :: how to get a user input in python 
Python :: python press any key to continue 
Python :: Open the .txt file 
Python :: python else 
Python :: how to learn regex pyton 
Python :: insert multiple column pandas 
Python :: python code for twitter scraping using tweepy 
Python :: odd number in python 
Python :: django model registration 
Python :: python iterate through list 
Python :: python range function examples 
Python :: reverse linked list python 
Python :: number data type in python 
Python :: combine for and if python 
Python :: list append string 
Python :: print items of list using list comprehension in python 
Python :: turtle opacity 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =