Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Python program which will take N names from the user. Create a dictionary from the N names that will hold First_name, Middle_name

Write a Python program which will take N names from the user. Create a dictionary from the N names that will hold First_name, Middle_name and Last_name in separate keys. The inputs will take N at first and then take N names. You can assume that the names will contain less than or equal 3 words and there will be single space between each part of the name. Sample Input: 4 Zubayer Ahmed Sadia Nur Amin Mehedi Hasan Shawon Nafis Sample Output: { "Fname" : [Zubayer, Sadia, Mehedi, Nafis], "Mname": ["Nur, Hasan], "Lname": ["Ahmed", "Amin", "Shawon"]}te Fotti

Step by Step Solution

There are 3 Steps involved in it

Step: 1

This problem requires you to first find the number of names needed this can be done using a simple i... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Programming questions

Question

Describe the purpose of the SUBTRACT command in relational algebra.

Answered: 1 week ago