#Write a function facebook_time that doesn't have any parameters. The #function reads the number of hours each person spent on Facebook on one #day. The number of hours is a positive integer. First zero or negative #integer will terminate the input. The function finds and returns the #total number of hours spent on Facebook by all people and the number of people #who spent 4 hours or more on Facebook that day. #Write main to test your function #Optional: you can store data in one dimensional list, and then create 2 #lists: one with 4 hours or more on Facebook, and one below 4 hours #Solution 1 without lists def facebook_time(): total=0 c_above4=0 hours=float(input("enter number of hours ")) while(hours>0): total=total+hours if(hours>=4): c_above4=c_above4+1 hours=float(input("enter number of hours ")) return total, c_above4 def main(): total, c_above4 = facebook_time() if(total==0): print("nobody used Facebook") else: print("total hours on Facebook", total) if(c_above4==0): print("nobody spent 4 hours or more") else: print(c_above4, "people spent 4 hours or more") main()