𝗖𝗼𝗱𝗲𝗿𝗮𝘁𝗼𝗿
67 subscribers
6 links
A Free Channel for Sharing and Learning PHP, Nodejs, Python, HTML, CSS Codes to make your own scripts

Feel Free to ask
Download Telegram
#Python #Py #py #python

Python is a terminal based language that can run and shown on a terminal or shell only.

To show anything on terminal :

print("Here you can write as your wish to be printed out on the terminal for debug or test or anything")

Noted: Your output must be inside Double Quotes (" ")
#Python #Py #py #python

Variables: Variables are one kind of a bag or store room that only stores something from your given input or given text or anything.

Assign: The thing you want to store on a variable should be assigned by a assign mark ( = ), remember you are in coding world, so here equal and assign mark are different, equal mark is ( ==) and assign mark is ( = )

Example:

name = "Rohim"

Noted: Here I assigned "Rohim" text on the "name" variable, variables must be without double quote but any text should be inside double quote
2
#Python #Py #py #python

Simple Maths that can be helpful for you in different operations in any python scripts. And you can see the output by direct use these examples given below.

Addition:
result = 5 + 3
print(result)

Output: 8

Subtraction:
result = 10 - 2
print(result)

Output: 8

Multiplication:
result = 4 * 2
print(result)

Output: 8

Division:
result = 16 / 2
print(result)

Output: 8.0

Integer Division:
result = 16 // 2
print(result)

Output: 8

Mod:
result = 17 % 3
print(result)

Output: 2

Power:
result = 2 ** 3
print(result)

Output: 8
#Python #Py #py #python

🔴 What is Python?

Python is a popular and versatile programming language. It's known for its simplicity, readability, and ease of use, which makes it a great choice for beginners and experienced programmers alike. Python can be used for a wide variety of tasks, such as web development, data analysis, scientific computing, automation, artificial intelligence, and more.

🔴 How to install Python?

To use python programming language, you need to install the Python interpreter on your operating system.

For windows: You can download Python from the official website https://www.python.org/downloads/
For VPS: You can install by command: apt install python3 && apt install python3-pip
For Termux: You can install by command: pkg install python3

🔴 How to make python code?

Open a text editor on your computer. You can use Notepad (Windows), TextEdit (macOS), or any code editor you prefer (e.g., Visual Studio Code, Sublime Text). Write the following code:

print("Hello, World!")

Save the file with a .py extension, for example, hello.py.

🔴 How to run the code?

Open a terminal or command prompt. Go to the folder where you saved your hello.py file. Run the program by typing:

python hello.py

You should see the output: Hello, World!
1