python/Test/Test 2.py

10 lines
241 B
Python

# Ask the user for a number
number = int(input("Enter a number: "))
# Multiply the number by 2
result = number * 2
# Print the result
print("The number multiplied by 2 is: " + str(result))
print(f"The number multiplied by 2 is: {result}")