Computer Science, asked by rishabroy126, 10 months ago

What are the barebones in the python program

Answers

Answered by Ritiksuglan
17

Answer:

To run Python scripts with the python command, you need to open a command-line and type in the word python , or python3 if you have both versions, followed by the path to your script, just like this: $ python3 hello.py Hello World! If everything works okay, after you press Enter , you'll see the phrase Hello World!

Answered by Anonymous
59

The barebones of python program are Expressions, Statements, Comments,

Functions, Block and Indentation.

  • Expressions: They are the combination of symbols with values to evaluate.  
  • Statement: These are Instructions that python can execute.                                         eg: a=1
  • Comments: This is the additional information about the statement. There are single and multiline comments available. These are ignored by Interpreter.
  • Functions: It is itself a small program that takes input and processed and gives output.                                                                                                          eg: print(), input()
  • Block and Indentation: Block is a piece of code that executes as a unit. Indentation is a space given for better readability and understanding.
Similar questions