📄️ Sample Program
Before learning about python program, let's see a sample python program to be familiar with how the code looks.
📄️ Python Code Structure
Maintainable Code
📄️ Variable And Literal
Literals:
📄️ Print Function
The print function in Python is used to display messages on the console. You can pass any value to it, and it will convert it to a string and print it. If you want to print multiple items, you can separate them with commas. By default, there is no separator, but you can add one using the sep argument. Additionally, each print statement ends with a new line, but you can change this using the end argument.
📄️ Numeric Representation
Python supports different ways of representing numbers, including integer and real (floating point) numbers.
📄️ Strings
Definition of a String