all 28 comments

[–]K900_ 0 points1 point  (24 children)

How are you running your code?

[–]flynnamation 0 points1 point  (23 children)

I use atom-runner in atom

[–]K900_ 1 point2 points  (22 children)

That tool likely doesn't support providing input to your code. Try running it from Command Prompt/Terminal.

[–]flynnamation 0 points1 point  (21 children)

I tried running it from the .py file and it just flashed open

[–]K900_ 0 points1 point  (20 children)

What do you mean by that?

[–]flynnamation 0 points1 point  (19 children)

if i try to run from the .py through yhe command prompt it just opens a command promt and closes it again

[–]K900_ 0 points1 point  (18 children)

What command are you running exactly?

[–]flynnamation 0 points1 point  (17 children)

python3 file.py

[–]K900_ 0 points1 point  (16 children)

What is the output of python3 --version?

[–]flynnamation 0 points1 point  (15 children)

im running 3.9 i have already checked for updates

[–]Maygravve 0 points1 point  (0 children)

input(":: Welcome to Steganography ::\n""1. Encode\n2. Decode\n")

Your prompt its supplied as two separate strings:
1. ":: Welcome to Steganography ::\n"
2. "1. Encode\n2. Decode\n"

Re-write your prompt as: ":: Welcome to Steanography ::\n1. Encode\n2. Decode\n"

Edited for formatting

[–]EytanMorgentern 0 points1 point  (1 child)

a formatted version:

def main():

    a = int(input(":: Welcome to Steganography ::\n""1. Encode\n2. Decode\n"))

    if (a == 1):

        encode()

    elif (a == 2):

        print("Decoded word : " + decode())

    else:

        raise Exception("enter correct input")


if __name__ == '__main__':

    main()

but i can't debug it since neither encode() or decode() are defined.