Answer:
def print_popcorn_time(bag_ounces):
if bag_ounces<3:
print("Too Small")
elif bag_ounces>10:
print("Too Large")
else:
total = 6*bag_ounces
print('{} seconds'.format(total))
Explanation:
Using Python programming language
The function is defined to accept a single parameter
Using a combination of if/elif/else statements, the approprite message is displayed when the function is called
Answer:
here ya go
Explanation:
A computer is a powerful tool because it is able to perform the information processing cycle operations (input, process, output, and storage) with amazing speed, reliability, and accuracy; store huge amounts of data and information; and communicate with other computers.
The most common was is your phone
Answer:
import datetime
user = input("Enter date in yyyy,m,d: ").split(",")
int_date = tuple([int(x) for x in user])
year, month, day =int_date
mydate = datetime.datetime(year, month, day)
print(mydate)
x = mydate.strftime("%B %d, %Y was a %A")
print(x)
Explanation:
The datetime python module is used to create date and time objects which makes it easy working with date-time values. The user input is converted to a tuple of integer items, then they are converted to date time objects and parsed to string with the strftime method.