Xcode Doesn't Display Python Shell.

I am new to Xcode and wanted to make a simple program that turns a decimal number into a binary number with Python. When I run the program, it outputs

Python 3.10.4 (v3.10.4:9d38120e33, Mar 23 2022, 17:29:05) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

and no output or place to input is present. Below is a screenshot of what happens. There is an input() function in the code, but nothing comes of it.

Additionally, if I run the same code in a basic Python compiler like Mu, it works perfectly.

Any help would be greatly appreciated.

Also, not sure if this is helpful, but when looking at the Themes tab of the Preferences page, all the Xcode text seems to be in the plain text style, as in all the text is the same color and Xcode seems to recognize all the text as the same type, no lists or keywords or anything.

And here is all the code, in case you can't see it in the pictures.

newNum = (0, 0)
bitList = [0]
i = 0
num = input("Number: ")

if num.isalpha() == True:
    print("Not a number")
elif int(num) >= 256:
    print("Not a valid number. Must be less than or equal to 255.")
else:
    while int(num) >= 0:
        newNum = divmod(int(num), 2)
        bitList.append(newNum[1])
        num = newNum[0]
        if i == 7:
            print("Conversion:  1  2  4  8 16 32 64 128")
            print("Binary:      " + str(bitList[1]) + "  " + str(bitList[2]) + "  " + str(bitList[3]) + "  " + str(bitList[4]) + "  " + str(bitList[5]) + "  " + str(bitList[6]) + "  " + str(bitList[7]) + "  " + str(bitList[8]))
            print("Raw: " + str(bitList[1]) + str(bitList[2]) + str(bitList[3]) + str(bitList[4]) + str(bitList[5]) + str(bitList[6]) + str(bitList[7]) +  str(bitList[8]))
        i += 1
        if i > 7:
            break

Xcode is designed for native iOS and macOS apps. You can use it for other languages as an editor and basic IDE.

But trying to get the debug console to work for those other languages may be much more difficult or impossible. It may be possible, but it is definitely an advanced Xcode task.

Xcode Doesn't Display Python Shell.
 
 
Q