Python Codes Basic to Advance
2.65K subscribers
82 photos
5 videos
8 files
100 links
Python Codes Basic to Advance

All Codes
@C_Codes_pro
@CPP_Codes_pro
@Java_Codes_Pro
@nodejs_codes_pro

Discussion
@bca_mca_btech
Download Telegram
Now Starting regular Codes Of Python/Django

You Want To practice these Codes in Regular basis

Don't worry if You are beginner or Advance Coders.
For Questions @BCA_Group_Pro
👍9
#1 This is Your first Python Code

print("Hello")
👍121
#2 Creating variables

var = 5 # Here_var_is_variable
# It_has_stored_value_5

print (var) # Showing_var_value
👍16👏3
#3 Creating variables & Adding

var1 = 5 # Variable 1
var2 = 7 # Variable 2

print (var1, '+', var2, '=', var1 + var2)
# Showing Add Result
Output 👆 of {This Program}
👏6👍4
#5 Arrays[Basically List] in Python

arr = [2, 3, 5] # initialized Array

print(arr[0] ) # printing 1st element
print(arr[1] ) # printing 2nd element
👍5
in Python array doesn't exists but
You can import its functionality by

Writing this 👇
import array

And use array like this format 👇
variable_name = array(typecode,[elements])
Here You can see type code used in virtual array

Array declaration 👇(also import this module)
variable_name = array(typecode,[elements])
👍1