-1

I am currently coding a slot-like game, and everything seems to work besides this one thing:

  File "/Users/r/Desktop/Game.py", line 36
    print(one, end = " ")
                   ^
SyntaxError: invalid syntax

Does anyone know how to fix this?

chepner
  • 497,756
  • 71
  • 530
  • 681
Ice
  • 9
  • 1
  • 3
  • 2
    Are you sure you are running Python3? In Python 2 you can `from __future__ import print_function` to get Python3's `print` function – AChampion Nov 19 '16 at 01:33
  • If you are using python 2.x, the `print` is not a function. You need to switch to python 3.x, or type `from future import print_function` to be able to use `print()` as it is in python 3.x – Nf4r Nov 19 '16 at 01:34
  • If my answer helped would you mind giving it the checkmark? – Cameron Mochrie Nov 19 '16 at 02:24

1 Answers1

-2

Are you trying to pass a Boolean for the second parameter to print?

In that case you want print(one, end == ' ')

Cameron Mochrie
  • 129
  • 1
  • 8