+ 2

FILL in the blanks to assign the value 15 to variable years and output the number of months(years multiplied by 12)

Help me to solve

8th Dec 2022, 3:31 AM
Prabesh Adhikari
Prabesh Adhikari - avatar
6 Answers
+ 8
# Assign the value 15 to the variable years years = 15 # Calculate the number of months by multiplying years by 12 months = years * 12 # Output the number of months print(f'There are {months} months in {years} years.')
9th Dec 2022, 9:56 AM
Sadaam Linux
Sadaam Linux - avatar
+ 4
Prabesh Adhikari year=15 >>>>here 15 is assigned to year... print (year*12)>>>>this will print the output Go through python courses ... In place of op you mentioned change it to what language you want.. that's all...
8th Dec 2022, 6:51 AM
Riya
Riya - avatar
+ 2
Prabesh Adhikari Please mention which language in relevant tag..
8th Dec 2022, 4:50 AM
Riya
Riya - avatar
0
How to tag
8th Dec 2022, 5:28 AM
Prabesh Adhikari
Prabesh Adhikari - avatar
0
Python
8th Dec 2022, 5:29 AM
Prabesh Adhikari
Prabesh Adhikari - avatar
0
Fill in the blanks to assign the value 15 to variable years and output the number of months (years multiplied by 12).
1st Jan 2023, 1:12 PM
Dinesh Kumar
Dinesh Kumar - avatar