Posts

Showing posts from February, 2023

write a program count the number of characture (without space) in the given string #python_language?

Image
  write a program count the number of characture (without space) in the given string? st='hyderabad tech hall' x=0 for i in st:         if i !=' ':                 x=x+1 print(x)

WAP ENTER ANY CHARATURE/NAME AND COUNT THE CHARATURE?#python_program

Image
 #WAP ENTER ANY CHARATURE/NAME AND COUNT THE CHARATURE? ''' name=input( 'enter any name: ') print('The total characture in{} is {}'.format(name,len(name)))      ''' #wap to check the values is even or odd numbr? ''' x=eval(input('enter any number: ')) if x%2==0:     print('{} is a even number'.format(x)) else:     print('{} is odd number'.format(x)) print('thank you')     ''' #WAP TO CHECK WHETHER STUDENT PASSED IN EXAM OE NOT? ''' marks=eval(input('enter your mark: ')) if marks >=35:     print('congratulations you passed the exam') else:     print('you failed the exam betterluck next time')  ''' #wap to check wether the citizen is eligible for vote or not? ''' Name=input('enter your name: ').lower() if type(Name) is str:     age=eval(input('enter your age: '))     if age >=18:         print('Hello {} you a...