Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
lower and upper alphabets checker
#python 3.5.2 def string_test(s): a = {'Lower_Case':0 , 'Upper_Case':0} #intiail count of lower and upper for ch in s: #for loop if(ch.islower()): #if-elif-else condition a['Lower_Case'] = a['Lower_Case'] + 1 elif(ch.isupper()): a['Upper_Case'] = a ['Upper_Case'] + 1 else: pass print('String in testing is: ',s) #printing the statements. print('Number of Lower Case characters in String: ',a['Lower_Case']) print('Number of Upper Case characters in String: ',a['Upper_Case']) x = input('') string_test(x)
run
|
edit
|
history
|
help
0
Rectangle Perimiter
BasicPattern.py
PyWeekD
PyTeleAbs
PyRegSub
Merge sort implementation
1
Python3 - PDF PAGES SEPARATION
list_copy_shallow_deep.py
ls