1 #1 assign the name Lebron to the variable name first then assign the name James to the variable name last 2 # write a statement to display the player's full name with a space between the first and last name (e.g. L 3 # write a statement to display the player's name and jersey number in the following format: 4 # Jersey 23: Lebron James (note the spaces) 5 first="Lebron" 6 last="James" 7 print (first, last) 8 print("Jersey 23: ", first, last) a 10 #2 assign the name Kobe to the variable name first then assign the name Bryant to the variable name last 11 # write a statement to display the player's full name (Kobe Bryant) 12 # write a statement to display the player's name and jersey number in the following format: 13 # Jersey 8: Kobe Bryant 14 first "Kobe" 15 last="Bryant" 16 print (first, last) 17 print("Jersey 8:", first, last) 18 19 #3 use an input() statement to ask the user for a player's first name and assign it to the variable name f 20 # use an input() statemetnt to ask the user for a player's last name and assign it to the variable l 21 # display the following statement using the user's inputs: 22 # Jersey 23: [user entered first name] [user entered last name] 23 f=input() 24 1-input() 25 print("Jersey 23:".f.1) 27 #4 use an input() statement to ask the user for a player's first name and assign it to the variable name f 28 # use an input() statemetnt to ask the user for a player's last name and assign it to the variable 1 29 # display the following statement using the user's inputs: 30 # Position Forward: [user entered first name] [user entered last name] 31 f=input() 32 1=input() 33 print("Position Forward: ",f,l) 34 35 # 5. use an input() statement to ask the user to input a team name and assign it to the variable team 36 # use a print() statement to display the user input with the word Go before it and an exclamation point a 37 #. For example, if the user enters 38 # Warriors, your output should read Go Warriors! (use commas for spaces between words and exclamation po 39 team=input("Warriors:") 49 print("Go" team "1")
1 #1 assign the name Lebron to the variable name first then assign the name James to the variable name last 2 # write a statement to display the player's full name with a space between the first and last name (e.g. L 3 # write a statement to display the player's name and jersey number in the following format: 4 # Jersey 23: Lebron James (note the spaces) 5 first="Lebron" 6 last="James" 7 print (first, last) 8 print("Jersey 23: ", first, last) a 10 #2 assign the name Kobe to the variable name first then assign the name Bryant to the variable name last 11 # write a statement to display the player's full name (Kobe Bryant) 12 # write a statement to display the player's name and jersey number in the following format: 13 # Jersey 8: Kobe Bryant 14 first "Kobe" 15 last="Bryant" 16 print (first, last) 17 print("Jersey 8:", first, last) 18 19 #3 use an input() statement to ask the user for a player's first name and assign it to the variable name f 20 # use an input() statemetnt to ask the user for a player's last name and assign it to the variable l 21 # display the following statement using the user's inputs: 22 # Jersey 23: [user entered first name] [user entered last name] 23 f=input() 24 1-input() 25 print("Jersey 23:".f.1) 27 #4 use an input() statement to ask the user for a player's first name and assign it to the variable name f 28 # use an input() statemetnt to ask the user for a player's last name and assign it to the variable 1 29 # display the following statement using the user's inputs: 30 # Position Forward: [user entered first name] [user entered last name] 31 f=input() 32 1=input() 33 print("Position Forward: ",f,l) 34 35 # 5. use an input() statement to ask the user to input a team name and assign it to the variable team 36 # use a print() statement to display the user input with the word Go before it and an exclamation point a 37 #. For example, if the user enters 38 # Warriors, your output should read Go Warriors! (use commas for spaces between words and exclamation po 39 team=input("Warriors:") 49 print("Go" team "1")
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter4: Making Decisions
Section: Chapter Questions
Problem 2GZ
Related questions
Question
I worked on the problems but it appears to be incorrect. Please fix and help the outputs. Thanks!
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,