Thursday, January 20, 2022
Tuesday, January 18, 2022
Write a function 'problem1_6()' that prints the odd numbers from 1 through 100. Make all of these numbers appear on the same line (actually, when the line fills up it will wrap around, but ignore that.). In order to do this, your print statement should have end=" " in it. For example, print(name,end=" ") will keep the next print statement from starting a new line. Be sure there is a space between these quotes or your numbers will run together. Use a single space as that is what the grading program expects. Use a 'for' loop and a range() function
Write a function 'problem1_5(age)'. This function should use if-elif-else statement to print out "Have a glass of milk." for anyone under 7; "Have a coke." for anyone under 21, and "Have a martini." for anyone 21 or older.
Monday, January 17, 2022
Write a function problem1_2(x,y) that prints the sum and product of the numbers x and y on separate lines, the sum printing first.
Write a function problem1_1() that prints "Problem Set 1".
def problem1_1():
How to get free course on Coursera with cirtificate ? , coursera Financial aid questions & answers :
Coursera Financial aid questions & answers
Q1) Why are you applying for Financial Aid?
ans:- I am in my second year of B.Tech in college in India. I am currently unemployed and I am yet to be placed in my college. My father is a Farmer in a rural area in India. My mother is a homemaker who keeps assisting my father. This course is therefore too expensive for me to afford. This course will boost my job prospects after graduation from my institute. It will help me perform better in understanding and learning this technology and give me an edge over my competitors. A verified certificate will attach credibility to the certificate I receive from this course. I plan to complete all assignments on or before time as I have done in previous Signature Track Courses. Also, I intend to participate in Discussion Forums, which I have found to supplement my learning immensely in the other online courses I have taken on Coursera. I also plan to grade assignments that are peer-reviewed which I believe will be an invaluable learning opportunity.
Q2) How will taking this course help you achieve your career goals?
How to get free course on Coursera with cirtificate ? , coursera Financial aid questions & answers :
Coursera Financial aid questions & answers Q1) Why are you applying for Financial Aid? ans:- I am in my second year of B.Tech in ...
-
def problem1_4(miles): print("There are",miles*5280,"feet in",miles,"miles....
-
def problem1_3(n): sum=0 i=0 while i Copy