Question

c. print python code that requests a person's first name, birth year, birth month like 'January',...

c. print python code that requests a person's first name, birth year, birth month like 'January', and birth day of month as input, then outputs a full sentence using the three inputs and another sentence that tells the length of the previous sentence that was printed.. Include one line of comment explaining each line of code:

d., print python code that assigns the 4 variables shown in step 8 the math formulas created in step 8. Output a sentence that labels and shows the values of num1 and num2 as integers and num3 and num4 as float values. c.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hello,

Python code for part C is as follows

firstName= input("Tell me your first Name : "); ' function is used to take input'
birthYear= input("Enter the Year of birth: ");
birthMonth=input("Enter the Month of birth (like January, Febuary etc.): ");
birthDay=input("Enter day of birth (date from month like 10,20 31 etc.): ");

sentence= firstName +" was bourn on "+ birthDay+", "+birthMonth+" "+birthYear; 'Making a sentence (string) from inputs taken'

print(sentence); ' printing sentence'
length=len(sentence);

print("Length of sentence is ", length); 'Printing Length of Sentence'

Add a comment
Know the answer?
Add Answer to:
c. print python code that requests a person's first name, birth year, birth month like 'January',...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • print python code that requests a person's first name, birth year, birth month like 'January', and...

    print python code that requests a person's first name, birth year, birth month like 'January', and birth day of month as input, then outputs a full sentence using the three inputs and another sentence that tells the length of the previous sentence that was printed.. Include one line of comment explaining each line of code

  • using this code to complete. it python 3.#Display Program Purpose print("The program will show how much...

    using this code to complete. it python 3.#Display Program Purpose print("The program will show how much money you will make working a job that gives a inputted percentage increase each year") #Declaration and Initialization of Variables userName = "" #Variable to hold user's name currentYear = 0 #Variable to hold current year input birthYear = 0 #Variable to hold birth year input startingSalary = 0 #Variable to hold starting salary input retirementAge = 0 #Variable to hold retirement age input...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT