String editor and more information


what is variable

variable's example a = 'hello'


String creat simple programe print 


Print ('hello world')


String example 


a = 'fida'

b = (a.upper ())

print (b)


String editor name



count editor using 
Ans is (1)

A = 'fida'

print (A.count('fida'))
endswith editor using
a = 'fida///'
b = (a.endswith('///'))
Ans is (True)
  • count
  • len
  • Upper
  • lower
  • split 
  • rstrip 
  • capitalize 
  • replace 
  • center 
  • index
  • isalnum
  • isalpha
  • isupper
  • islower
  • isprintable
  • isspace
  • istitle
  • endswith
  • startswith
  • swapcase
  • title


while loop Simple programe

A = 1

while A <= 11:

                      print (A)  

                      A += 1

                      if A == 6:

                                       break

print ('fida your sestem has breaked \nThanks')




For  loop simple programe


for a in range (1,10):

                                 print ('fida')

                                 if a == 5:

                                                break

print ('fida your sestem has breaked \nThanks')

Comments

Popular posts from this blog

String editor

Calculator code

timedelta