Question: Your task is to: Python using seperate (sep) and( end code) Once upon a time in Appleland, John had three apples, Mary had five apples,

Your task is to: Python using seperate (sep) and( end code)

Once upon a time in Appleland, John had three apples, Mary had five apples, and Adam had six apples. They were all very happy and lived for a long time. End of story.

  • create the variables: john, mary, and adam; using sep and end code
  • assign values to the variables. The values must be equal to the numbers of fruit possessed by John, Mary, and Adam respectively;
  • having stored the numbers in the variables, print the variables on one line, and separate each of them with a comma;
  • now create a new variable named totalApples equal to addition of the three former variables.
  • print the value stored in totalApples to the console;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!