Answer:
def leap_year(y):
if y % 4 == 0:
return 1
else:
return 0
def number_of_days(m,y):
if m == 2:
return 28 + leap_year(y)
elif m == 1 or m == 3 or m == 5 or m == 7 or m == 8 or m ==10 or m == 12:
return 31
elif m == 4 or m == 6 or m == 9 or m == 11:
return 30
def days(m,d):
if m == 1:
return 0 + d
if m == 2:
return 31 + d
if m == 3:
return 59 + d
if m == 4:
return 90 + d
if m == 5:
return 120 + d
if m == 6:
return 151 + d
if m == 7:
return 181 + d
if m == 8:
return 212 + d
if m == 9:
return 243 + d
if m == 10:
return 273 + d
if m == 11:
return 304 + d
if m == 12:
return 334 + d
def days_left(d,m,y):
if days(m,d) <= 60:
return 365 - days(m,d) + leap_year(y)
else:
return 365 - days(m,d)
print("Please enter a date")
day=int(input("Day: "))
month=int(input("Month: "))
year=int(input("Year: "))
choice=int(input("Menu:\n1) Calculate the number of days in the given month.\n2) Calculate the number of days left in the given year.\n"))
if choice == 1:
print(number_of_days(month, year))
if choice == 2:
print(days_left(day,month,year))
Explanation:
Hoped this helped
StrawberryTeaa (could be any fruit: blueberry, peach, etc)
potatoxchip
pastelsquid
SquishyPeach
GummiBear
ElegantFlaws (could add an e and remove the s: EleganteFlaw)
hunnie_b (or honee, honnie, hunni, etc)
agonyisheree
It's cool if you don't like these. I had trouble when I changed my user too. But you'll find your perfect username eventually. :)
Answer:
This question was initially incomplete. Here is the full question:
Many Web browsers allow users to open anonymous windows. During a browsing session in an anonymous window, the browser does not record a browsing history or a list of downloaded files. When the anonymous window is exited, cookies created during the session are deleted. Which of the following statements about browsing sessions in an anonymous window is true?
a) The activities of a user browsing in an anonymous window will not be visible to people who monitor the user's network, such as the system administrator.
b) Items placed in a Web store's shopping cart for future purchase during the anonymous browsing session will not be saved on the user's computer.
c) A user will not be able to log in to e-mail or social media accounts during the anonymous browsing session.
d) A user browsing in an anonymous window will be protected from viruses launched from any Web sites visited or files downloaded.
The correct answer is b) Items placed in a Web store's shopping cart for future purchase during the anonymous browsing session will not be saved on the user's computer.
Explanation:
For e-commerce sites, shopping cart information are stored as cookies on the visitor's computer such that when the website visitor leaves the website and comes back a few days later, their shopping preferences are remembered.
If the website visitor uses an anonymous window, the cookies created during the browsing session will be deleted when the anonymous website is exited and so, items placed in the shopping cart for future purchase will not be saved.
Answer:
I guess c no. is the answer
Answer:
None
Explanation:
I find them scary and they give me nightmares