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.
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'
c. print python code that requests a person's first name, birth year, birth month like 'January',...
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 Python... Be sure to include the first line that makes the file an executable file in Linux. File Name: PyramidBlocks.py Python skills needed: Simple for loop (for var in range(num1,num2): Use of the range object Use of python math Creation of a Python Function Use of the print() method. Code Assignment 1: Alex sells pyramid wall art. In the design of his pyramids have each row has one more block than the last which means row 10 has 10...
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...