1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rom4ik [11]
2 years ago
6

Python exercise grade 10

Computers and Technology
1 answer:
guapka [62]2 years ago
7 0

earliest = ""

while True:

   month = int(input("Enter a date (month): "))

   day = int(input("Enter a date (date): "))

   year = int(input("Enter a date (year): "))

   if month == 0 and day == 0 and year == 0:

       break

   if month < 10:

       month = "0"+str(month)

   if day < 10:

       day = "0"+str(day)

   string_date = str(month)+"/"+str(day)+"/"+str(year)

   print(string_date)

   if earliest == "":

       earliest = string_date

   else:

       year,month,day=int(year),int(month),int(day)

       lst = list(map(int,earliest.split("/")))

       if year < lst[2]:

           earliest = string_date

       elif year == lst[2] and month < lst[0]:

           earliest = string_date

       elif year == lst[2] and lst[0] == month and day < lst[1]:

           earliest = string_date

print(earliest,"is the earliest date")

I wrote my code in python 3.8. Best of luck.

You might be interested in
Regarding computer protection, quarantining is defined as ________. Select one: A. placing a found virus in a secure area on the
MatroZZZ [7]

Answer:

A. placing a found virus in a secure area on the hard drive

Explanation:

When a file is defected in a computer, quarantining is applied to prevent other parts of the computer. The infected file is isolated and if you let your antivirus software, it can delete the infected file.

3 0
3 years ago
A shift in Demand occurs when the Demand curve moves either to the left or right. This results in a change in quantity without a
Marina86 [1]
I think it is Price absolutely
7 0
3 years ago
Explain in detail what it means to synchronize computers and mobile devices and include at least two strategies for keeping your
olya-2409 [2.1K]

Answer:

Explanation:

To synchronize computers and mobile devices means to use a cloud service that constantly checks to see if local files are up-to-date with the files in the cloud. These services update the cloud files with the local files if they are overwritten for maximum convenience.

Two strategies for keeping files in sync are using Dropbox. Another way is using iCloud if one has Mac/iOS devices.

7 0
2 years ago
Peter works on a huge database of numerical figures in a worksheet ranging from cell A1 to cell I50. He has to print the workshe
Shalnov [3]
I don't know if it's possible, but try using landscape. It may fit
7 0
3 years ago
Read 2 more answers
What technology in Windows Server 2016 allows several network interfaces to work together in a coordinated effort to provide loa
r-ruslan [8.4K]

Answer:

The answer is NIC Teaminng

Explanation:

NIC teaming is one of those very few technologies in Windows server 2016 that is used to optimize network performance. It can be applied on both physical servers and virtual ones. Once NIC Teaming is correctly configured and implemented, we will get the most out of the interfaces that are connected directly to our servers. Say we have several interfaces connected to the server at the same time; we can have a network team configure two or three of these interfaces to work together in a coordinated fashion. As a result, this will provide increased bandwidth and fault tolerance. To get the best results, a network team is required to configure not one but a few NICs in the team. Once we create a team from two interfaces in Windows server, it is going to make it look like one NIC and is going to give us some load balancing and redundancies in case one interface goes down and the other one is still running.

4 0
3 years ago
Other questions:
  • What is the function of the modem?
    12·2 answers
  • Case project 5-1 Network Integration ​
    5·1 answer
  • What does computer means?
    13·2 answers
  • The PICC team is scheduled to remove a PICC before client discharge. Assessment of the catheter indicates the PICC and determine
    7·1 answer
  • QUESTION
    10·1 answer
  • ___________ key encryption in wep uses the rc4 encryption algorithm.
    9·1 answer
  • Several disaster relief nonprofits want to create a centralized application and repository of information so that they can effic
    7·1 answer
  • Select the correct answer from each drop-down menu.
    6·1 answer
  • You want to implement 802.1x authentication on your wireless network. Where would you configure passwords that are used for auth
    11·1 answer
  • Russian newspaper says U.S. journalism is conducting 'experiments' to introduce fast-growing artificial intelligence technology.
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!