def Greeting(): print('Welcome to CS 101') print('I hope you are having a great morning') print('There is no lab today or tomorrow') def repeatGreeting(s,n): return s * n import math def area_circle(r): return math.pi * (r ** 2) def volume_cone(radius, height): return (1/3) * (math.pi * radius ** 2 ) * height def volume_cone2(r, h): return (1/3) * area_circle(r) * h def missingchar(s,n): """ Removes n which is index in the string""" return s[0:n]+s[n+1:] def remove_char(s,c): return s[0:s.find(c)]+s[s.find(c)+1:] def remove_char2(s,c): pos = s.find(c) return s[0:pos]+s[pos+1:] def remove_char3(s,c): pos = s.find(c) return missingchar(s,pos) def weeklyWage(hours, hourlyWage): """ comments""" if hours > 40: return (hours - 40) * (3/2) * hourlyWage + 40 * hourlyWage else: return hours * hourlyWage def weeklyWage2(hours, hourlyWage): """ comments""" if hours <= 40: return hours * hourlyWage else: return (hours - 40) * (3/2) * hourlyWage + 40 * hourlyWage def sleep_in(weekday, vacation): if vacation: return True if weekday: return False else: return True