-c option in python3 command

-c option in python3 command

for the second task in 0x00-python-hello_world, I wasn't able to get the script right till I added the -c option in the script so here is what the -c option mean

export PYCODE='print(f"Best School: {88+10}")'

 #!/bin/bash 
python3 -c "$PYCODE"

The -c option in the python3 command stands for "command." It allows you to specify a command or a block of code directly on the command line, without the need for a separate Python script file. When you use the -c option, you can pass a string containing the Python code you want to execute immediately after it. The python3 -c command reads the provided code and executes it.

eg: python3 -c 'print("Hello, World!")'

you can omit the -c when running a module

python3 hello.py