SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
Many documents use a specific format for a person's name. Write a program that reads a person's
name in the following format firstName middleName lastName (in one line) and outputs the
person's name in the following format lastName, firstinitial middielnitial. Ex: if the input is: Pat 3111
y Doe the output is: Doe, P.5. If the input has the following format: firstNarne lastName (in one
line) the output is: lastName, firstinitial. Ex: If the input is: Julia clatk the output is: clark, J.main.py
Run your program as often as you'd like, before submitting for grading. Be input values in the first
box, then click Run program and observe the progr second box. Enter program input
(optional)Program errors displayed here File "main.py", line 10 first=name [0] SyntaxError: invalid
syntax

Contenu connexe

Plus de adityastores21

Luisa Ortega naci a trmino y peso normal A las 4 semanas .pdf
Luisa Ortega naci a trmino y peso normal A las 4 semanas .pdfLuisa Ortega naci a trmino y peso normal A las 4 semanas .pdf
Luisa Ortega naci a trmino y peso normal A las 4 semanas .pdfadityastores21
 
Loyola Beeri Bilimlerden en iyi mezunlardan biri olan Maria.pdf
Loyola Beeri Bilimlerden en iyi mezunlardan biri olan Maria.pdfLoyola Beeri Bilimlerden en iyi mezunlardan biri olan Maria.pdf
Loyola Beeri Bilimlerden en iyi mezunlardan biri olan Maria.pdfadityastores21
 
Lotus irketinin son bilanosu aadaki gibidir Varlklar D.pdf
Lotus irketinin son bilanosu aadaki gibidir  Varlklar  D.pdfLotus irketinin son bilanosu aadaki gibidir  Varlklar  D.pdf
Lotus irketinin son bilanosu aadaki gibidir Varlklar D.pdfadityastores21
 
Los socios de Newman Company deciden liquidar la empresa cua.pdf
Los socios de Newman Company deciden liquidar la empresa cua.pdfLos socios de Newman Company deciden liquidar la empresa cua.pdf
Los socios de Newman Company deciden liquidar la empresa cua.pdfadityastores21
 
LTC Coding Activity Quiz Instructions Using the information.pdf
LTC Coding Activity Quiz Instructions Using the information.pdfLTC Coding Activity Quiz Instructions Using the information.pdf
LTC Coding Activity Quiz Instructions Using the information.pdfadityastores21
 
Ltfen adli botanikte bitki trlerinin tanmlanmas iin DNA a.pdf
Ltfen adli botanikte bitki trlerinin tanmlanmas iin DNA a.pdfLtfen adli botanikte bitki trlerinin tanmlanmas iin DNA a.pdf
Ltfen adli botanikte bitki trlerinin tanmlanmas iin DNA a.pdfadityastores21
 
Los pacientes del hospital a menudo reciben medicamentos nu.pdf
Los pacientes del hospital a menudo reciben medicamentos nu.pdfLos pacientes del hospital a menudo reciben medicamentos nu.pdf
Los pacientes del hospital a menudo reciben medicamentos nu.pdfadityastores21
 
Louis ha pasado al paso de planificacin de la investigacin.pdf
Louis ha pasado al paso de planificacin de la investigacin.pdfLouis ha pasado al paso de planificacin de la investigacin.pdf
Louis ha pasado al paso de planificacin de la investigacin.pdfadityastores21
 
Los genes A B y C se clasifican y controlan de forma indep.pdf
Los genes A  B y C se clasifican y controlan de forma indep.pdfLos genes A  B y C se clasifican y controlan de forma indep.pdf
Los genes A B y C se clasifican y controlan de forma indep.pdfadityastores21
 
Ltfen soruyu okuyun ve cevaplayn Green River Katili olara.pdf
Ltfen soruyu okuyun ve cevaplayn  Green River Katili olara.pdfLtfen soruyu okuyun ve cevaplayn  Green River Katili olara.pdf
Ltfen soruyu okuyun ve cevaplayn Green River Katili olara.pdfadityastores21
 
MAINCPP include ltiostreamgt include ltstringgt u.pdf
MAINCPP include ltiostreamgt include ltstringgt u.pdfMAINCPP include ltiostreamgt include ltstringgt u.pdf
MAINCPP include ltiostreamgt include ltstringgt u.pdfadityastores21
 
Many features of firm and bank balance sheets are the same o.pdf
Many features of firm and bank balance sheets are the same o.pdfMany features of firm and bank balance sheets are the same o.pdf
Many features of firm and bank balance sheets are the same o.pdfadityastores21
 
Ltfen hem niversiteye hem de stanbula sosyal ve kltrel .pdf
Ltfen hem niversiteye hem de stanbula sosyal ve kltrel .pdfLtfen hem niversiteye hem de stanbula sosyal ve kltrel .pdf
Ltfen hem niversiteye hem de stanbula sosyal ve kltrel .pdfadityastores21
 
Many diseases of cognition cause defects in excitatory synap.pdf
Many diseases of cognition cause defects in excitatory synap.pdfMany diseases of cognition cause defects in excitatory synap.pdf
Many diseases of cognition cause defects in excitatory synap.pdfadityastores21
 
Many of the most pressing organizational issues attracting p.pdf
Many of the most pressing organizational issues attracting p.pdfMany of the most pressing organizational issues attracting p.pdf
Many of the most pressing organizational issues attracting p.pdfadityastores21
 
Many of the detailed consequences of climate change are diff.pdf
Many of the detailed consequences of climate change are diff.pdfMany of the detailed consequences of climate change are diff.pdf
Many of the detailed consequences of climate change are diff.pdfadityastores21
 
Manuel kendi kk iini kurmak istiyor Aadakilerin tm bi.pdf
Manuel kendi kk iini kurmak istiyor Aadakilerin tm bi.pdfManuel kendi kk iini kurmak istiyor Aadakilerin tm bi.pdf
Manuel kendi kk iini kurmak istiyor Aadakilerin tm bi.pdfadityastores21
 
Manager Hot Seat Case 2Discipline Protocols Burned by the .pdf
Manager Hot Seat Case 2Discipline Protocols Burned by the .pdfManager Hot Seat Case 2Discipline Protocols Burned by the .pdf
Manager Hot Seat Case 2Discipline Protocols Burned by the .pdfadityastores21
 
Make sure to make a copy of the Google Doc for this lab into.pdf
Make sure to make a copy of the Google Doc for this lab into.pdfMake sure to make a copy of the Google Doc for this lab into.pdf
Make sure to make a copy of the Google Doc for this lab into.pdfadityastores21
 
Mali ve Para politikas eylemleri ve bunun NX net ihracat .pdf
Mali ve Para politikas eylemleri ve bunun NX net ihracat .pdfMali ve Para politikas eylemleri ve bunun NX net ihracat .pdf
Mali ve Para politikas eylemleri ve bunun NX net ihracat .pdfadityastores21
 

Plus de adityastores21 (20)

Luisa Ortega naci a trmino y peso normal A las 4 semanas .pdf
Luisa Ortega naci a trmino y peso normal A las 4 semanas .pdfLuisa Ortega naci a trmino y peso normal A las 4 semanas .pdf
Luisa Ortega naci a trmino y peso normal A las 4 semanas .pdf
 
Loyola Beeri Bilimlerden en iyi mezunlardan biri olan Maria.pdf
Loyola Beeri Bilimlerden en iyi mezunlardan biri olan Maria.pdfLoyola Beeri Bilimlerden en iyi mezunlardan biri olan Maria.pdf
Loyola Beeri Bilimlerden en iyi mezunlardan biri olan Maria.pdf
 
Lotus irketinin son bilanosu aadaki gibidir Varlklar D.pdf
Lotus irketinin son bilanosu aadaki gibidir  Varlklar  D.pdfLotus irketinin son bilanosu aadaki gibidir  Varlklar  D.pdf
Lotus irketinin son bilanosu aadaki gibidir Varlklar D.pdf
 
Los socios de Newman Company deciden liquidar la empresa cua.pdf
Los socios de Newman Company deciden liquidar la empresa cua.pdfLos socios de Newman Company deciden liquidar la empresa cua.pdf
Los socios de Newman Company deciden liquidar la empresa cua.pdf
 
LTC Coding Activity Quiz Instructions Using the information.pdf
LTC Coding Activity Quiz Instructions Using the information.pdfLTC Coding Activity Quiz Instructions Using the information.pdf
LTC Coding Activity Quiz Instructions Using the information.pdf
 
Ltfen adli botanikte bitki trlerinin tanmlanmas iin DNA a.pdf
Ltfen adli botanikte bitki trlerinin tanmlanmas iin DNA a.pdfLtfen adli botanikte bitki trlerinin tanmlanmas iin DNA a.pdf
Ltfen adli botanikte bitki trlerinin tanmlanmas iin DNA a.pdf
 
Los pacientes del hospital a menudo reciben medicamentos nu.pdf
Los pacientes del hospital a menudo reciben medicamentos nu.pdfLos pacientes del hospital a menudo reciben medicamentos nu.pdf
Los pacientes del hospital a menudo reciben medicamentos nu.pdf
 
Louis ha pasado al paso de planificacin de la investigacin.pdf
Louis ha pasado al paso de planificacin de la investigacin.pdfLouis ha pasado al paso de planificacin de la investigacin.pdf
Louis ha pasado al paso de planificacin de la investigacin.pdf
 
Los genes A B y C se clasifican y controlan de forma indep.pdf
Los genes A  B y C se clasifican y controlan de forma indep.pdfLos genes A  B y C se clasifican y controlan de forma indep.pdf
Los genes A B y C se clasifican y controlan de forma indep.pdf
 
Ltfen soruyu okuyun ve cevaplayn Green River Katili olara.pdf
Ltfen soruyu okuyun ve cevaplayn  Green River Katili olara.pdfLtfen soruyu okuyun ve cevaplayn  Green River Katili olara.pdf
Ltfen soruyu okuyun ve cevaplayn Green River Katili olara.pdf
 
MAINCPP include ltiostreamgt include ltstringgt u.pdf
MAINCPP include ltiostreamgt include ltstringgt u.pdfMAINCPP include ltiostreamgt include ltstringgt u.pdf
MAINCPP include ltiostreamgt include ltstringgt u.pdf
 
Many features of firm and bank balance sheets are the same o.pdf
Many features of firm and bank balance sheets are the same o.pdfMany features of firm and bank balance sheets are the same o.pdf
Many features of firm and bank balance sheets are the same o.pdf
 
Ltfen hem niversiteye hem de stanbula sosyal ve kltrel .pdf
Ltfen hem niversiteye hem de stanbula sosyal ve kltrel .pdfLtfen hem niversiteye hem de stanbula sosyal ve kltrel .pdf
Ltfen hem niversiteye hem de stanbula sosyal ve kltrel .pdf
 
Many diseases of cognition cause defects in excitatory synap.pdf
Many diseases of cognition cause defects in excitatory synap.pdfMany diseases of cognition cause defects in excitatory synap.pdf
Many diseases of cognition cause defects in excitatory synap.pdf
 
Many of the most pressing organizational issues attracting p.pdf
Many of the most pressing organizational issues attracting p.pdfMany of the most pressing organizational issues attracting p.pdf
Many of the most pressing organizational issues attracting p.pdf
 
Many of the detailed consequences of climate change are diff.pdf
Many of the detailed consequences of climate change are diff.pdfMany of the detailed consequences of climate change are diff.pdf
Many of the detailed consequences of climate change are diff.pdf
 
Manuel kendi kk iini kurmak istiyor Aadakilerin tm bi.pdf
Manuel kendi kk iini kurmak istiyor Aadakilerin tm bi.pdfManuel kendi kk iini kurmak istiyor Aadakilerin tm bi.pdf
Manuel kendi kk iini kurmak istiyor Aadakilerin tm bi.pdf
 
Manager Hot Seat Case 2Discipline Protocols Burned by the .pdf
Manager Hot Seat Case 2Discipline Protocols Burned by the .pdfManager Hot Seat Case 2Discipline Protocols Burned by the .pdf
Manager Hot Seat Case 2Discipline Protocols Burned by the .pdf
 
Make sure to make a copy of the Google Doc for this lab into.pdf
Make sure to make a copy of the Google Doc for this lab into.pdfMake sure to make a copy of the Google Doc for this lab into.pdf
Make sure to make a copy of the Google Doc for this lab into.pdf
 
Mali ve Para politikas eylemleri ve bunun NX net ihracat .pdf
Mali ve Para politikas eylemleri ve bunun NX net ihracat .pdfMali ve Para politikas eylemleri ve bunun NX net ihracat .pdf
Mali ve Para politikas eylemleri ve bunun NX net ihracat .pdf
 

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 

Dernier (20)

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

Many documents use a specific format for a persons name Wr.pdf

  • 1. Many documents use a specific format for a person's name. Write a program that reads a person's name in the following format firstName middleName lastName (in one line) and outputs the person's name in the following format lastName, firstinitial middielnitial. Ex: if the input is: Pat 3111 y Doe the output is: Doe, P.5. If the input has the following format: firstNarne lastName (in one line) the output is: lastName, firstinitial. Ex: If the input is: Julia clatk the output is: clark, J.main.py Run your program as often as you'd like, before submitting for grading. Be input values in the first box, then click Run program and observe the progr second box. Enter program input (optional)Program errors displayed here File "main.py", line 10 first=name [0] SyntaxError: invalid syntax