Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Python Program to count the number of lowercase letters and uppercase letters in a string.

string=raw_input("Enter string:")
count1=0
count2=0
for i in string:
      if(i.islower()):
            count1=count1+1
      elif(i.isupper()):
            count2=count2+1
print("The number of lowercase characters is:")
print(count1)
print("The number of uppercase characters is:")
print(count2)
Comment

python all lowercase letters

import string
print string.ascii_lowercaseOutputabcdefghijklmnopqrstuvwxyz
Comment

modify string lower case in python

#The lower() method returns the string in lower case:

a = "Hello, World!"
print(a.lower())

#plz like if found helpful or tell me about my mistakes in comment
Comment

how to make lowercase text in python

y = text = "HI THIS IS HUSSEIN ASADI FROM IRAN"

y = text.lower()
print(y)
Comment

PREVIOUS NEXT
Code Example
Python :: python remove items from list containing string 
Python :: progressbar time in python 
Python :: correlation between images python 
Python :: create array with unknown size in python 
Python :: python private 
Python :: python replace only first instance 
Python :: numpy find columns containing nan 
Python :: request headers in django 
Python :: python get unique pairs from two lists 
Python :: combine dataframes with two matching columns 
Python :: python multiaxis slicing 
Python :: change dictionary value python 
Python :: only keep rows of a dataframe based on a column value 
Python :: to_csv create folder 
Python :: .argsort() python 
Python :: python move a file from one folder to another 
Python :: compare two dictionaries in python 
Python :: delete key value in dictionary python 
Python :: how to make a resizable python tkinter window have a limit 
Python :: how to create 3 dimensional array in numpy 
Python :: python reference to back folder 
Python :: python change character in string 
Python :: writerows to existing csv python 
Python :: data compression in python 
Python :: how to define function in python 
Python :: object value python 
Python :: pandas select first within groupby 
Python :: ping from python 
Python :: telethon send image 
Python :: headless chrome python 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =