Python Codes
6.28K subscribers
51 photos
1 file
86 links
This channel will serve you all the codes and programs which are related to Python.

We post the codes from the beginner level to advanced level.
Download Telegram
Channel created
1. Basic Arithmetic

# Addition
Input :2+1
Output:3

# Subtraction
Input :2-1
Output:1

# Multiplication
Input :2*2
Output:4

# Division
Input :3/2
Output:1.5

# Floor Division
Input :7//4
Output:1

@python_codes
2. Variable Assignments

>>> a=7
>>> a
7
>>> a=a+a
>>> a
14
>>> a=a/7
>>> a
2.0
>>> a=a-2
>>> a
0.0

The names you use when creating these labels need to follow a few rules:

1. Names can not start with a number.
2. There can be no spaces in the name, use _ instead.
3. Can't use any of these symbols :'",<>/?|\()!@#$%^&*~-+
4. It's considered best practice that names are lowercase.
5. Avoid using the characters 'l' (lowercase letter el), 'O' (uppercase letter oh),
or 'I' (uppercase letter eye) as single character variable names.
6. Avoid using words that have special meaning in Python like "list" and "str"

@python_codes