Respuesta :
Answer:
x = int(input("How old are you turning? "))
c = 0
while (c != x):
c = c + 1
print("**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
Output:
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.
Learn more on python programs here:
brainly.com/question/17796174
