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
tiny-mole [99]
3 years ago
10

Write a program that reads a string from the user containing a date in the form mm/dd/ yyyy. It should print the date in the for

m April 12, 2017. Hint: Get the "mm" from the user entered date "mm/dd/yyyy", then convert the "mm" into a month number. You may use an list month_list
Computers and Technology
1 answer:
Oxana [17]3 years ago
3 0

Answer:

months_info = ['January', 'February','March','April', 'May','June', 'July','August', 'September', 'October', 'November', 'December']

date = input('Enter a date using the mm/dd/yyyy format ')

m, d, y = date.split('/')

m = int(m) - 1

name_of_month = months_info[m]

print('{} {}, {}'.format(name_of_month, d, y))

Explanation:

  • Create a list of all months and store them in the months_info variable.
  • Get the date as an input from user and then split the date.
  • Finally display the date by following the specific layout using the built-in format method.
You might be interested in
Which of the following describes the function of a web browser?
Papessa [141]

Answer:

option D.

Explanation:

A web browser is a software program that allows a user to locate, access, and display web pages. Browsers are used primarily for displaying and accessing websites on the internet, as well as other content created using languages such as Hypertext Markup Language (HTML) and Extensible Markup Language (XML).

it acts like an interface between a user and a world wide web

8 0
3 years ago
Read 2 more answers
Can anyone help with studying Epic AMB400 exam?
Wittaler [7]

Answer:

study Epic AMB400 using smart web and mobile flashcards created by top student, teachers and professor

8 0
2 years ago
Which two protocols manage neighbor discovery processes on ipv4 networks?.
serious [3.7K]

Answer:

Which two protocols manage neighbor discovery processes on IPv4 networks? TCP and UDP BGP and OSPF ICMP and ARP IPv4 and IPv6

Key Links. Pricing.

Subjects. Medical & Nursing.

Company. About Us.

Find Us.

Explanation:

6 0
2 years ago
Your Web page provides a form for users to add their names to a membership list, stored in a text file. You are writing a progra
vlada-n [284]

Answer:

For the above condition, and as mentioned none of the mode will work, and we need to make use of the JSON format. And we nee to use the JavaScript, and we don't need to mention the mode in JavaScript. Thus, this is nowadays used solution for this old problem that existed when we used to code using c++ and c.

Explanation:

You need to write over this text file, and you also need to read. Hence, you need to open the file with the three privileges, and the append will be required,and this way we can only move line by line. However, this is an old style. Now we save in text file in JSON format. The data collected  from Form is converted to JSON format and written in text file. And as required data can be read or written, and as required.  So if we use only JSON format, then we need not mention the mode, as its not required these days in new languages like JavaScript.

3 0
3 years ago
What does ADSL stand for?
vladimir1956 [14]
Asymmetric digital subscriber line (ADSL)
3 0
3 years ago
Read 2 more answers
Other questions:
  • Explain how can you protect your computer from malware
    15·2 answers
  • Sam has installed a new CPU in a client’s computer, but nothing happens when he pushes the power button on the case. The LED on
    14·1 answer
  • Henry Ford would have been most interested to bring which modern innovation to his automotive factories?
    5·2 answers
  • Please help me with these questions
    5·1 answer
  • Since the actions in a textual storyboard are often very close to actual program code, the statements in a textual storyboard ar
    15·1 answer
  • The company where Derek works has tasked him with setting up and securing a SOHO router. He wants to make sure the wireless netw
    7·1 answer
  • Explain 3 ways you can be an upstander when seeing cyberbullying.
    13·2 answers
  • What is the main component of the EV3 Lego Robot called?​
    6·1 answer
  • During which part of an examination are various body parts and organs touched and felt?
    15·1 answer
  • Describe three ways to call attention to the text on a web page.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!