190k views
1 vote
How can I make [ print(3 * x) ] into a functional python code?

User WinOrWin
by
5.1k points

1 Answer

7 votes

If you're programming in python, you simply have to assign a value to x and then use the print function. For instance,

x = 3

print(3 * x)

9 will be the output. I hope this helps!

User Corasan
by
5.1k points