Posts

Showing posts from June, 2024

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())