Python Programing Variables in Hindi :

[8:41 AM, 8/20/2024] ЁЭЩ┐ЁЭЩ╕ЁЭЪИЁЭЪДЁЭЪВЁЭЩ╖ ЁЭЪГЁЭЩ╖ЁЭЩ░ЁЭЩ║ЁЭЪБЁЭЩ┤


pythonvariable

Python programing language рдореЗ рднреА рдФрд░ programing language(C, C++,Java etc.) рдХреА рддрд░рд╣ variable рд╣реЛрддреЗ рд╣реИ рдЬреЛ рдХрд┐рд╕реА value рдпрд╛ Data рдХреЛ store рдХрд░рддреЗ рд╣реИред Python рдореЗ Variables рдХреЛ different type рд╕реЗ declare рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ рдЗрд╕рдореЗрдВ рд╣рдореЗ Variables ka data type define рдХрд░рдиреЗ рдХрд┐ рдЬрд░реВрд░рдд рдирд╣реА рд╣реЛрддреА рд╣реИред


Python variable рдХрд╛ example :

1) a=5

Explain : рдЗрд╕ example рдореЗ ' a 'рдПрдХ variable рд╣реИ рдЬреЛ рдХрд┐ 5 value ko store рдХрд░ рд░рд╣рд╛ рд╣реИ рдУрд░ ' = ' рдПрдХ operator рд╣реИ рдЬрд┐рд╕рдХреА help рд╕реЗ рд╣рдо рдХрд┐рд╕реА рднреА variable рдореЗ value assign рдХрд░рддреЗ рд╣реИред рдЗрд╕рдореЗрдВ 5 рдПрдХ integar рд╣реИред

2) b=2.0

Explain : рдЗрд╕ example me b variable рдореЗ 2.0 рдХреЛ store рдХрд┐рдпрд╛ рдЧрдпрд╛ рдЬрд╣рд╛ b рдХрд╛ data type float рд╣реИред Python рдореЗ built in library рд╣реЛрддреА рд╣реИ рдЬреЛ variable рдХрд╛ data type automatic identify рдХрд░ рд▓реЗрддрд╛ рд╣реИред


Type of variable in Python :

1.Local variable

2.Globel variable

1.Local variable :рдРрд╕реЗ variable variable рдЬрд┐рдирдХрд╛ scope рдХрд┐рд╕реА special block рддрдХ рд╣реА рд╣реЛрддрд╛ рд╣реИ рдЙрдиреНрд╣реЗ Local variable рдХрд╣рд╛ рдЬрд╛рддрд╛ рд╣реИред рдЗрди Variables рдХрд╛ use рд╣рдо block рдХреЗ рдмрд╛рд╣рд░ рдирд╣реА рдХрд░ рд╕рдХрддреЗ рд╣реИред


Example :
def my_function():
local_var = 101 # This is a local variable
print(local_var)

my_function() # This will print: 101


Output : 101


2.Globel Variable : рдРрд╕реЗ variable рдЬрд┐рдирдХрд╛ scope рдкреВрд░реЗ program рдореЗ рд╣реЛрддрд╛ рд╣реИ рдпрд╛ рдЬрд┐рди Variables рдХреЛ рд╣рдо рдХрд╣реА рдкрд░ рднреА use рдХрд░ рд╕рдХрддреЗ рд╣реИ Globel variable рдХрд╣рд▓рд╛рддреЗ рд╣реИред


Example :
global_var = 10
def print_global():
print("Global variable:", global_var) # Access the global variable
print_global()


Output : 10


Variable Declaration Rules in Python :

Profile

StudyInHindi

рдореИрдВ Piyush Thakre, studyinhindi.com рдХрд╛ Founder рд╣реВрдВред рдпрд╣ website computer science рдХреЗ student рдХреЗ рд▓рд┐рдП рд╣рд┐рдВрджреА рдореЗрдВ рдЕрдзреНрдпрдпрди рд╕рд╛рдордЧреНрд░реА рдкреНрд░рджрд╛рди рдХрд░рддреА рд╣реИред рдореИрдВ рдПрдХ рдЕрдиреБрднрд╡реА рд╡реЗрдм рдбреЗрд╡рд▓рдкрд░ рд╣реВрдВ рдФрд░ website devlopment рдореЗрдВ рд╡рд┐рд╢реЗрд╖рдЬреНрдЮрддрд╛ рд░рдЦрддрд╛ рд╣реВрдВред

тАвтАвтАв

All python programing notes in hindi

1

8/18/2024

What is Python in Hindi

Python рдПрдХ Scripting Language рд╣реИ Pyhton рдПрдХ High Level Language рд╣реИ....

Read More

2

08/19/2024

Python programing variable in Hindi

This website is very good.This website helped me a lot

Read More

3

08/20/2024

What is Perl programing in Hindi

Perl Object Oriented рдФрд░ procedural рджреЛрдиреЛ рдкреНрд░рдХрд╛рд░ рдХреЗ programming Language

Read More

4

08/21/2024

Python and Perl Installation process in hindi

Perl Object Oriented рдФрд░ procedural рджреЛрдиреЛ рдкреНрд░рдХрд╛рд░ рдХреЗ programming Language

Read More

5

08/22/2024

Perl Data Types in hindi : (perl data type рдХреНрдпрд╛ рд╣реИ)

Perl Object Oriented рдФрд░ procedural рджреЛрдиреЛ рдкреНрд░рдХрд╛рд░ рдХреЗ programming Language

Read More

6

08/23/2024

Understanding read function in Python

Python programming рдореЗ Understanding read function рдХрд╛ use Files рд╕реЗ Data рдХреЛ read..

Read More

7

08/24/2024

Understanding write function in python

Python рдореЗ write() function рдХрд╛ use files рдореЗ data рдХреЛ write рдпрд╛ рд▓рд┐рдЦрдиреЗ....

Read More

8

08/25/2024

File operation in python in hindi

python programing рдореЗ file operation рдХрд╛рдлреА easy рдерд╛ рд╕рд░рд▓ рд╣реИред рдЬрд┐рдирдХреА help рд╕реЗ...

Read More

9

08/26/2024

Powerful pattern matching and searching in python

Python рдореЗ powerful pattern matching рдФрд░ searching рдХреЗ рд▓рд┐рдП 're' module рдХрд╛ use ..

Read More

10

08/27/2024

Framework in python in hindi (Framework рдХреНрдпрд╛ рд╣реИред)

Python рдореЗ framework modules рдпрд╛ packages рдХрд╛ рдПрдХ collection рд╣реЛрддрд╛ рд╣реИ рдЬреЛ рд╣рдореЗ application ..

Read More

11

08/28/2024

Django and Web2py framework in hindi

Web2py framework рдХрд╛ use dynamic web application devlop рдХрд░рдиреЗ рдХреЗ ..

Read More