Posts

Showing posts from June, 2025

babu lake babu ?

kalyan babu

World richest man in the world

ITS YOU CAN DO IT

To find grade for five subjects using python

maths=int(input("enter marks")) pysics=int(input("enter marks")) soicial=int(input("enter marks")) science=int(input("enter marks")) english=int(input("enter marks")) total=maths+pysics+soicial+english+science print(total) percentage=(total/500)*100 print(percentage) if percentage > 90: print("grade A") if percentage > 80 and percentage 70 and percentage

number vowels in given string using python

name="dimpulsdgwfcyewfucyfewyudffcjywdghaaaaaaaaaaaaiaiiaiaiaiiaiaiaiiaiacfwyjfeutyai" a=name.count('a') e=name.count('e') i=name.count('i') o=name.count('o') u=name.count('u') print(f" number of vowels: {a+e+i+o+u}") OUTPUT number of vowels: 43

Escape sequence in python

foer a example ket you tell that sai's is print in the output but ---> '

string concatenation

first= str("dimpul") second=str("sai") print(first + " love " + second) print(len(second)) print(len(first)) program for special cases in string Python String strip() Method The strip() method removes any leading, and trailing whitespaces. Leading means at the beginning of the string, trailing means at the end. You can specify which character(s) to remove, if not, any whitespaces will be removed. first= str("dimpul sai") print(first.upper()) print(first.lower()) print(first.strip()) print(first.replace('d','D')) print(first.count('i'))