Edhesive 4.3 code practice question 1 PLZ SOMEONE

Some new education question and answer enquired students to tell what they presume is the most important important aspect for a student to do in order for you to become success. Of the many responses, one that that stood out was practice. People who absolutely successful do not become successful by being born. They work hard and perseverance their lives to succeeding. This is how you can attain your goals. followed below some question and answer examples that you would certainly utilize to elevate your knowledge and gain insight that will assist you to sustain your school studies.


Edhesive 4.3 code practice question 1 PLZ SOMEONEtopic: Grandma Ester normally gives you hugs for your birthday – one for every year old you are. When you turned 15, she squished you with 15 hugs! This year, she, unfortunately, cannot see you on your birthday, so instead, she wants to send you virtual hugs!Create a program that prompts the user for how old they are turning and then using a loop, output a virtual hug for every year old they are.The following prints a single “virtual hug.”


Following are the python program to calculate the virtual hugs:

Python Program:

age = int(input(“How old are you? “))#defining the age variable that inputs age value in number

for x in range(0,age):#defining the loop that counts and prints the number of HUG value

   print(“**HUG**”)#print message


please find the attached file.

Program Explanation:

  • Defining the ‘age‘ variable that inputs age value by using the input and int method that takes only numeric value.
  • After the input value, a for loop is defined this loop that counts the age value and prints the number of ‘HUG‘ values, by using the print method.
READ MORE  Which graph shows a function where f(2) = 4?

Learn more on python programs here:

From the answer and question examples above, hopefully, they could assist the student answer the question they had been looking for and take note of each and every step stated in the answer above. You will possibly then have a discussion with your classmate and continue the school learning by studying the topic alogside each other.

Leave a Reply

Your email address will not be published.