Python Forum
Python is not working on Xcode
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python is not working on Xcode
#1
   

Hey guys, I have been trying to run python on xcode, but it is showing the “Build Failed.” Please help me resolve this error.
Reply
#2
Hi,

are you aware that the Python code you entered is not valid Python code for any supported version of Python? This will not run anyway.

Regards, noisefloor
Reply
#3
Yes, try like this perhaps

name = input('Enter your name ... ')
# lets say name = 'Joe'
print(f'Hey {name}, where you goin\' with that gun in your hand?')
print('I\'m going down to shoot my old lady, you know, I caught her messing around with another man.')
Reply
#4
(Nov-27-2025, 06:04 PM)noisefloor Wrote: Hi,

are you aware that the Python code you entered is not valid Python code for any supported version of Python? This will not run anyway.

Regards, noisefloor

Hey, I’m not aware of that, I’m new to python, even in coding. I’m just following this guide step by step, but I’m unable to find where I’m getting wrong.
Reply
#5
(Nov-28-2025, 06:04 AM)lary_p Wrote: I’m just following this guide step by step, but I’m unable to find where I’m getting wrong.
Look at the last screenshot in the tutorial for Xcode and compare your code to the code in the screenshot. Parenthesis matter a lot in Python.

Being new to Python, it is _highly_ recommendable to work yourself through the official Python tutorial.

Regards, noisefloor
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  building app in XCODE with python phantom115 2 2,654 Aug-02-2023, 11:56 AM
Last Post: phantom115

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020