Skip to main content

Posts

Python Introduction in Hindi (Part -1)

Subscribe * indicates required Email Address *                                                PYTHON                                                                                                                                                               Python kya hai ? Python ek programming language h , to programming language kya h , dekho agar mai kisi se baat kr rha hu ya fir kisi ko kuch samjha raha hu to usse baat krne ya samjhane m mujhe kisi language ka use krna padega jaise man lo mai use hindi m samjha rha hu to yaha mai hindi language use kr rha hu  thik usi tarah computer ko samjhane ke liye mujhe kisi programming language ka use krna padega , aur PYTHON unme se ek hi hai. "  agar ap ko lagta h ki python language ka naam  python( ajgar ) ke naam pr rakha gya h to ap bahut badi galat fahmi mai ji rhe ho kyoki python ka naam ek comedy group 'montey python' se liya gya h" Python hi kyo ? Py
Recent posts

Modules and Packages in Python in Hindi (Part -16)

                    Modules and Packages Modules aur Packages sunne mai kafi fancy term lag raha hai, lekin is post ko padhne ke baad apko clear hojayega ki modules aur packages kya hai ? let's suppose apne ek python program banaya aur usse save kr diya rishabh.py name se, aur fir apne ek dusra program banaya aur ussse save kr diya gupta.py name se , to basically rishabh.py ek module ho gya aur ussi tarah gupta.py bhi ek module ho gya aur har module ke andar kuch classes hongi kuch , kuch functions honge , aur ham in classes or function ka use kr skte hai dusre program mai import statement ki madad se jo ki hm aange dekhne wale hai , to basically module .py name se save koi bhi python program hogaya, to ab baat krte hai ki packages kya hote hai , to packages basically collection of modules and empty __init__.py file hote hai, to agar upar wala example le to agar hm rishabh.py , gupta.py aur empty __init__.py file ko ek folder mai rakhe to vo folder ek Package kahelayega. module - r

Error and Exception Handling in Python in Hindi (Part -15)

Subscribe * indicates required Email Address *                                         Error and Exception Handling Python mai coding krte samay kabhi na kabhi apko error to jrur mili hogi jaise print('hello) Output: Syntax error 2+'s' Output: Type error So is tarah ki error jo python nhi samajh pa raha hai ise hm exception kahte hai. Hm is tarah ke exception ko handle kr skte hai, dekho hota kya hai jb exception aati hai to python interpreter program ko stop kr deta hai  aur error throw kr deta hai, aur hame output mai error mil jati hai , to hm error ko handle kr skte hai try aur except keyword ka use kr ke  so , try aur except error ko handle krte hai aur baki ke code ko continue rakhne mai madad krte hai. So , jb bhi apko lage ki yaha error hone ke chances hai ise try keyword ke andar rakhe, aur us exception ki handling hm except ke andar  rakhenge Aayiye ise example ki madad se aur clear krte hai... -----

OOPs in Python in Hindi (Part -14)

Subscribe * indicates required Email Address *          OBJECT ORIENTED PROGRAMMING Python ek object oriented programming language hai, iska mtlb ye hai ki Python mai hr ek chiz object hai. Dekho Oops kafi confusing ho skta hai agar ap longo ko oops kafi gande tarike se padhya gya hai , mai is post ke jariye ap longo ko oops ko bahut assan shabdo mai samjhane ki pori koshish krunga.  Aayiye oops padhne se pehle kuch terms clear kr lete hai , taki ap longo ko ise padhne mai koi muskil na ho. Class and object Class ek design ya blueprint hai. Object ek real thing hai. Aayiye ise example ki madad se aur clear krte hai jaise Animal ek class hai aur cat , dog , tiger etc ye sb object hai, Animal ek real chiz nhi hai lekin object ek real chiz hai Ek example aur lete hai jaise bhot longo ke pass iPhone 11 hoga lekin ye design sirf ek baar hi kiya jata hai to ek class ke pass kai object ho skte hai. Aayiye object ko aur deep se samj