+ 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
9 Antworten
+ 11
# 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
+ 1
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
0
How to tag
8th Dec 2022, 5:28 AM
Prabesh Adhikari
Prabesh Adhikari - avatar
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).
9th Mar 2023, 10:45 AM
XiuHui
XiuHui - avatar
0
15*12
9th Mar 2023, 1:06 PM
Shoxrux Tolibov
Shoxrux Tolibov - avatar
0
15
29th Mar 2023, 9:33 AM
BOYA SRI CHANDANA
BOYA SRI CHANDANA - avatar