python/Test/Test 2.py
2024-03-11 20:05:37 -04:00

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}")