Posts

age code find classes colleg school tushan

 name = input('enter your name ........... ') n = (name.upper()) print ('ok .......... ' +name) age = int(input('enter your age ......... ' )) print ('ok....... ',age) if age >=18:         print (name +' go to colleg .......') elif age<= 5:         print ('go to tushan .........') else:         print (name +' go to school.....') new upgrde  wargen  note = 'using this code \n \'thanks\'' no = (note.upper()) name = input('enter your name ........... ') n = (name.upper()) print ('ok .......... ' +n) age = int(input('enter your age ......... ' )) print ('ok....... ',age,' \n') if age >=18:         print (n +' go to colleg .......\n') elif age<= 5:         print (n +'go to tushan .........\n') else:         print (n +' go to school.....\n') print (no)

Car drive and not drive code

b = 'you can drive ...... \n\'and......\'\nyou can not drive.....\n' c = (b.title()) print (c) e = 'thanks....\nusing this code.....' f = (e.title()) x = input('enyer your name ') y = ('hello ' + x) z = (y.title()) print (z) a = int(input('enter your age \n......')) print (x ,'' + 'hello your age is ........',a) if a > 17:         print ( x + ' you can \'drive\'\n') else:         print ( x + ' you can not \'drive\'\n') print (f)

Adult watching and not watching code

 a = 'hello ' b = (a.upper()) name = input('enter your name ') print ('hello .......'+name) gander = input('your gander ....\nman .......woman..') print ('ok.........'+gander) age = int(input('enter your age .........\n')) print ('ok your age is .......... ',age) if age>=18:         print (a+name + ' you can watching this sex ') else:         print (a+name+' do not watching this sex ')

Rastorant card code

 order = input('cold coffe ........hot coffe ') b = (order.upper()) print (b) a = input('pizza ............beryane ') c = (a.upper()) print (c) d = input('chai ..........cake ') f = (d.upper()) print (f) t = 'thanks ' k = (t.upper()) print (k) print (b) print (c) print (f)

String editor

 find index isalnum isalpha isupper islower isprintable isspace istitle endswith startswith swapcase title #a = '  ' #print (a.isspace()) a = 'Fida' print (a.istitle()) #a = 'Fida' #print (a.swapcase()) a = 'hello fida my name is harry' print (a.title())

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:                           ...

Calculator code

Calculator code  first = int(input('enter your first number :' )) operater = input('enter operater number [ +,-,*,/,% [ :' )         second = int(input('enter second number : ')) if operater =='+':         print (first+second) elif operater =='-':         print (first-second) elif operater =='*':         print (first*second) elif operater =='/':         print (first/second) elif operater =='%':         print (first%second) else :         print ('invaled operation') Upgrade Calculator code name = input('enter your name ')                                  first = int(input('inter first number ..... ')) op = input('inter operater +..-..*../..%..//..**.. ') second = int(input('inter second number ........... '))           if op == '+':...