this is for python scripting. Write a statement that assigns total_coins with the sum of nickel_count and dime_count. Sample output for 100 nickels and 200 dimes is:
300. do the same for 9 nickels and 0 dimes also.

total_coins = 0

nickel_count = int(input())
dime_count = int(input())

''' Your solution goes here '''

print(total_coins)

Respuesta :

Based on Python Scripting, the program that executes the above process is given below:

nickel_count = 100#defining a variable nickel_count that holds an integer value

dime_count = 200#defining a variable dime_count that holds an integer value

total_coins = 0#defining a variable total_coins that initilize the value with 0  

total_coins = nickel_count + dime_count#using total_coins that adds nickel and dime value

print(total_coins)#print total_coins value

What is the explanation for the above code?

Defining a variable "nickel count, dime count" and initializing it with the value "100, 200."

The "total coins" variable is declared next, and it is initialized with 0.

We add the aforementioned variable value and report its value after initializing "total coins."

Learn more about python:
https://brainly.com/question/26497128
#SPJ1

Ver imagen azikennamdi