84.7k views
3 votes
CHALLENGE ACTIVITY 2.1.3: Multiplying the current value of a variable. Write a statement that assigns cell_count with cell_count multiplied by 10. * performs multiplication. If the input is 10, the output should be: 100

1 Answer

3 votes

Answer:

cell_count = int(input("Enter the value: "))

cell_count *= 10

print(cell_count)

Step-by-step explanation:

Ask the user to enter a value and set it to the cell_count variable

Multiply the cell_count by 10 and assign it to the cell_count (It can also be written as cell_count = cell_count * 10)

Print the cell_count

User Jvolkman
by
4.8k points