0
def Corner(n):
  if n == 3:
    print('İts An Triangle \nBu Bir Üçgen')
  elif n == 4:
    print('İts An Rectangle or Square or Parrallelogram \nBu Bir 
   Dikdörtgen yada Kare yada ParalelKenar ')
  elif n == 5:
    print('İts An Pentagon \nBu Bir Beşgen')
  elif n == 6:
    print('İts An Hexagon \nBu Bir Altıgen')
  else:
    print('Bir Köşe Sayısı Girmediniz \nYou Didnt Wrote a Corner 
 Number '

print Corner(6)

**File "Köşegen.py", line 13
print Corner(6)
    ^
SyntaxError: invalid syntax**

Its The Error Code I wrote it on Python3 This Code About the Corners and Shapes but I had that massage when I run the code

Cœur
  • 37,241
  • 25
  • 195
  • 267
M_Ouz
  • 25
  • 5
  • Close your parentheses, and then https://stackoverflow.com/questions/826948/syntax-error-on-print-with-python-3 – user2357112 Apr 03 '18 at 20:02
  • Possible duplicate of [What does "SyntaxError: Missing parentheses in call to 'print'" mean in Python?](https://stackoverflow.com/questions/25445439/what-does-syntaxerror-missing-parentheses-in-call-to-print-mean-in-python) – Artemis Apr 05 '18 at 18:08
  • @MrT That in itself is a duplicate of above – Artemis Apr 05 '18 at 18:09

3 Answers3

2

You're missing some parentheses:

print('Bir Köşe Sayısı Girmediniz \nYou Didnt Wrote a Corner Number ') # here

print(Corner(6)) # and here
Todd W
  • 398
  • 1
  • 6
0

In python 3, print is a function just like any other, so you need parentheses, as below:

print(' something ') 

Rather than:

print ' something '

In python 2

Artemis
  • 2,553
  • 7
  • 21
  • 36
0

I'm Closed The Parantheses and Its Worked Thanks For Help Artemis Fowl and Todd W

def Corner(n):
  if n == 3:
    print('İts An Triangle \nBu Bir Üçgen')
  elif n == 4:
    print('İts An Rectangle or Square or Parrallelogram \nBu Bir 
   Dikdörtgen yada Kare yada ParalelKenar')
  elif n == 5:
    print('İts An Pentagon \nBu Bir Beşgen')
  elif n == 6:
    print('İts An Hexagon \nBu Bir Altıgen')
  else:
   print('Bir Köşe Sayısı Girmediniz \nYou Didnt Wrote a Corner Number')

print(Corner(6))
M_Ouz
  • 25
  • 5