# first program: im-honorable.py print( "yes" ) # correct # print( " yEs" ) # incorrect # print( "YES " ) #incorrect # second program: sneeze.py # calculate how many days it would take to sneeze a number of times given that avg person sneezes 3 times a day reply = input( "enter number of sneezes: " ) n = int( reply ) number_of_sneezes = n / 3 number_of_sneezes = round( number_of_sneezes, 2 ) print( number_of_sneezes ) # ez.py # figure out the number of occurances of "ez" in a string + number of "ez" per word (case sensitive) reply = input( "enter text: " ) number_of_ezs = reply.count( "ez" ) print( number_of_ezs ) words = reply.split() n = len( words ) avg = number_of_ezs / n print( avg ) # triplet.py # get a total of cubes reply = input( "enter n: " ) n = int( reply ) total = 0 for i in range( 0, n+1 ) : term = i ** 3 total = total + term print( total ) # maximus.py # user types 2 numbers, find and print the max of the two numbers reply = input( "enter two numbers:" ) a, b = reply.split() a = int( a ) b = int( b ) c = max( a, b ) print( c ) # casing.py # get two lines of text, print first lowercase second uppercase and total number of words reply1 = input( "enter text: " ) reply2 = input( "enter text: " ) lower_case = reply1.lower() upper_case = reply2.upper() words1 = reply1.split() words2 = reply2.split() n1 = len( words1 ) n2 = len( words2 ) n = n1 + n2 print( lower_case ) print( upper_case ) print( n ) # initialing.py reply = input( "enter some text: " ) words = reply.split() output = "" for word in words: ch = word[ 0 ] output = output + ch print( output ) # simpler_than_you_think.py # count number of negative numbers -> strings have count() function reply = input( "enter some numbers: " ) n = reply.count( "-" ) print( n )