uppercase to lowercase in python
python program to get a String and convert the upper case characters tolower case Characters
Sample Input 1 :
Hello
Sample Output 1 :
hello
Program or Solution
s=input("Enter a String:")
result=""
for i in range(0,len(s)):
ascii_val = ord(s[i])
if(ascii_val>64 and ascii_val<91):
result+=chr(ascii_val+32)
else:
result+=chr(ascii_val)
s=result
print(s)
Program Explanation
unicode / ascii_val of lower case alphabets are from 97 to 122 unicode / ascii_val of upper case alphabets are from 65 to 90 so the difference between lower case and uppercase alphabets is 32.
use ord() method to find ascii_val of a character.
Use chr() method to find character of ascii value Note: String is immutable, so you cannot modify a character directly in a orginal string.
Comments
ubaTaeCJ
-1 OR 2+261-261-1=0+0+0+1 --ubaTaeCJ
-1 OR 3+261-261-1=0+0+0+1 --ubaTaeCJ
-1 OR 3*2<(0+5+261-261) --ubaTaeCJ
-1 OR 3*2>(0+5+261-261) --ubaTaeCJ
-1 OR 2+878-878-1=0+0+0+1ubaTaeCJ
-1 OR 3+878-878-1=0+0+0+1ubaTaeCJ
-1 OR 3*2<(0+5+878-878)ubaTaeCJ
-1 OR 3*2>(0+5+878-878)ubaTaeCJ
-1' OR 2+521-521-1=0+0+0+1 --ubaTaeCJ
-1' OR 3+521-521-1=0+0+0+1 --ubaTaeCJ
-1' OR 3*2<(0+5+521-521) --ubaTaeCJ
-1' OR 3*2>(0+5+521-521) --ubaTaeCJ
-1' OR 2+648-648-1=0+0+0+1 or 'mF83o6r3'='ubaTaeCJ
-1' OR 3+648-648-1=0+0+0+1 or 'mF83o6r3'='ubaTaeCJ
-1' OR 3*2<(0+5+648-648) or 'mF83o6r3'='ubaTaeCJ
-1' OR 3*2>(0+5+648-648) or 'mF83o6r3'='ubaTaeCJ
-1" OR 2+379-379-1=0+0+0+1 --ubaTaeCJ
-1" OR 3+379-379-1=0+0+0+1 --ubaTaeCJ
-1" OR 3*2<(0+5+379-379) --ubaTaeCJ
-1" OR 3*2>(0+5+379-379) --ubaTaeCJ
if(now()=sysdate(),sleep(15),0)ubaTaeCJ
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'ZubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"ZubaTaeCJ
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ubaTaeCJ
-1; waitfor delay '0:0:15' --ubaTaeCJ
-1); waitfor delay '0:0:15' --ubaTaeCJ
1 waitfor delay '0:0:15' --ubaTaeCJ
LN1Md3QO'; waitfor delay '0:0:15' --ubaTaeCJ
-5 OR 24=(SELECT 24 FROM PG_SLEEP(15))--ubaTaeCJ
-5) OR 873=(SELECT 873 FROM PG_SLEEP(15))--ubaTaeCJ
-1)) OR 298=(SELECT 298 FROM PG_SLEEP(15))--ubaTaeCJ
eCJMgeS4' OR 693=(SELECT 693 FROM PG_SLEEP(15))--ubaTaeCJ
sodlWNk5') OR 177=(SELECT 177 FROM PG_SLEEP(15))--ubaTaeCJ
f27jhZAM')) OR 753=(SELECT 753 FROM PG_SLEEP(15))--ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'ubaTaeCJ
1'"ubaTaeCJ
@@rWDzoRelated Programs
- length of the string in python
- find a character in a String Python
- occurences of character in string python
- lowercase to uppercase in python
- python count vowels in string
- Compare two Strings in python
- find vowels in string python
- find substring in string pyhton
- occurences of substring in a String python
- Reverse the String in python
- string Palindronme in python
- Remove the spaces in String python
- Remove the Vowels in String Python
coming Soon
coming Soon