This is a step-by-step guide on getting started with Python as a total beginner.

(includes free resources and everything else you need to get started)
🧵👇

Before we begin, I want to congratulate you on your decision to learn how to code using Python.

I still remember how I wrote my first piece of code 6 years and all the amazing and cool things I've been able to do with it ever since.

(2 / 24)
Make sure to keep in mind that it is probably best for you to keep your expectations in check.

Don't expect to make AAA games or state of the art machine learning models in a week.

(3 / 24)
Programming is not something that you can learn in a single week, it takes consistent effort and dedication over time to get good at it.

With all that being said, let's dive straight in.

(4 / 24)
In order to write Python code, you'll need to install Python on your system.

Linux and macOS users can skip this step because they come pre-installed with Python.

Download link: https://t.co/KSZ4Qd6CNk

(5 / 24)
Click on the .exe file and follow the instructions.

Make sure to Add python to path by checking this option 👇

(6 / 24)
Now you need to install a place where you can write your Python code, just like how you write your essays in Word or Google docs.

We'll be installing VS-Code, one of the best code editors out there and it's free!

(7 / 24)
Fortunately, Microsoft has this wonderful guide that'll help you out.

🔗https://t.co/0cN2JyM2di

(8 / 24)
In case you are unable to set up Python on your own system then I recommend using repl, a great way to write and run Python code without any hassle.

🔗https://t.co/eijcOcz42c

(8 / 24)
Here are the topics you should be focusing

- Printing statements
- Variables
- Operators
- Conditions
- Functions
- Loops

Let's take a closer look.

(9 / 24)
Printing statements

You can 'print' or output in Python using the print() function.

print('Hello World') will give you an output of `Hello World`

(10 / 24)
Variables

These store certain values that can change.

For example, You can declare a variable 'x' with a certain value.

x = 9 [Here 9 is assigned to varaiable x]
y = 'Hello World' ['Hello World' is assigned to y]

x = 8 [x has been updated to a new value which is 8]

(11 / 24)
Operators

These carry out arithmetic operations in Python

+ : Addition
- : Subtraction
* : Multiplication
/ : Divide
% : Modulus (Remainder after dividing)
** : Exponents

(12 / 24)
Conditions

They look like this 👇

a = 33
b = 200
if b > a:
print("b is greater than a")
else:
pass

Think of it as telling Python to do something based on conditions: if this is true, do this; else do something different.

(13 / 24)
Functions

These are basically blocks of code that can be run when you call them. This helps us write code more efficiently.

In Python, you can make functions using the def keyword.

def myFunction():
print("Hello")
myFunction()

(14 / 24)
Loops

These essentially run a piece of code over and over again until a certain condition is met.

There are 2 types of loops in Python:
- While loops
- For loops

Let's take a look at them.

(15 / 24)
Here's what While Loops look like.

i = 1
while i < 6: //While i is less than 6
print(i) // do
i += 1 //this

The output is :

(16 / 24)
Here's a For loop

fruits = ["apple", "banana", "cherry"]
for fruit in fruits:
print(x)

The output:

(17 / 24)
The for loops can be a bit tricky to understand, let me try to break it down for you.

'fruit' is the above loop is a temporary variable. It gets a value from the list called 'fruits' starting from "apple" then to "banana" and then "cherry".

(18 / 24)
Each time it gets a value, it is printed.

This explains why we get this output 👇

(19 / 24)
All that I explained before was to give you a taste of the basics of Python, having strong fundamentals at this stage is very important.

I have even more threads for further steps in Python coming up, stay tuned.

(20 / 24)
These are some of the resources I would recommend to you for further learning👇

Incredible text-based tutorials: https://t.co/qRvZNItSM2

(21 / 24)
Objected Oriented Programming (advanced) : https://t.co/Bpxrjlv4MQ

This course on Traversy Media's channel is a great next step for taking your python skills to the next level!

(22 / 24)
Python Documentation: https://t.co/5DX75jwnXQ

This is probably the most underrated resource for learning python.

(23 / 24)

More from Pratham Prasoon

More from Tech

(1) Some haters of #Cardano are not only bag holders but also imperative developers.

If you are an imperative programmers you know that Plutus is not the most intuitive -> (https://t.co/m3fzq7rJYb)

It is, however, intuitive for people with IT financial background, e.g. banks

(2)

IELE + k framework will be a real game changer because there will be DSLs (Domain Specific Languages) in any programming language supported by K framework. The only issue is that we need to wait for all this

(3) Good news is that the moment we get IELE integrated into Cardano, we get some popular langs. To my knowledge we should get from day one: Solidity and Rust, maybe others as well?

List of langs:
https://t.co/0uj1eBfrYj, some commits from many years ago..

@rv_inc ?

#Cardano

(a) Last but not least, marketing to people with Haskell, functional programming with experience and decision makers in banks is a tricky one, how do you market but not tell them you want to replace them. In the end one strategy is to pitch new markets, e.g. developing world

(b) As banks realize what is happening they maybe more inclined to join - not because they would like to but because they will have to - in such cases some development talent maybe re-routed to Plutus / Cardano / Algorand / Tezos

You May Also Like

#ज्योतिष_विज्ञान #मंत्र_विज्ञान

ज्योतिषाचार्य अक्सर ग्रहों के दुष्प्रभाव के समाधान के लिए मंत्र जप, अनुष्ठान इत्यादि बताते हैं।

व्यक्ति के जन्म के समय ग्रहों की स्थिति ही उसकी कुंडली बन जाती है जैसे कि फ़ोटो खींच लिया हो और एडिट करना सम्भव नही है। इसे ही "लग्न" कुंडली कहते हैं।


लग्न के समय ग्रहों की इस स्थिति से ही जीवन भर आपको किस ग्रह की ऊर्जा कैसे प्रभावित करेगी का निर्धारिण होता है। साथ साथ दशाएँ, गोचर इत्यादि चलते हैं पर लग्न कुंडली का रोल सबसे महत्वपूर्ण है।


पृथ्वी से अरबों खरबों दूर ये ग्रह अपनी ऊर्जा से पृथ्वी/व्यक्ति को प्रभावित करते हैं जैसे हमारे सबसे निकट ग्रह चंद्रमा जोकि जल का कारक है पृथ्वी और शरीर के जलतत्व पर पूर्ण प्रभाव रखता है।
पूर्णिमा में उछाल मारता समुद्र का जल इसकी ऊर्जा के प्रभाव को दिखाता है।


अमावस्या में ऊर्जा का स्तर कम होने पर वही समुद्र शांत होकर पीछे चला जाता है। जिसे ज्वार-भाटा कहते हैं। इसी तरह अन्य ग्रहों की ऊर्जा के प्रभाव होते हैं जिन्हें यहां समझाना संभव नहीं।
चंद्रमा की ये ऊर्जा शरीर को (अगर खराब है) water retention, बैचेनी, नींद न आना आदि लक्षण दिखाती है


मंत्र क्या हैं-
मंत्र इन ऊर्जाओं के सटीक प्रयोग करने के पासवर्ड हैं। जिनके जप से संबंधित ग्रह की ऊर्जा को जातक की ऊर्जा से कनेक्ट करके उन ग्रहों के दुष्प्रभाव को कम किया और शुभ प्रभाव को बढ़ाया जाता है।
#தினம்_ஒரு_திருவாசகம்
தொல்லை இரும்பிறவிச் சூழும் தளை நீக்கி
அல்லல் அறுத்து ஆனந்தம் ஆக்கியதே – எல்லை
மருவா நெறியளிக்கும் வாதவூர் எங்கோன்
திருவாசகம் என்னும் தேன்

பொருள்:
1.எப்போது ஆரம்பித்தது என அறியப்படமுடியாத தொலை காலமாக (தொல்லை)

2. இருந்து வரும் (இரும்)


3.பிறவிப் பயணத்திலே ஆழ்த்துகின்ற (பிறவி சூழும்)

4.அறியாமையாகிய இடரை (தளை)

5.அகற்றி (நீக்கி),

6.அதன் விளைவால் சுகதுக்கமெனும் துயரங்கள் விலக (அல்லல் அறுத்து),

7.முழுநிறைவாய்த் தன்னுளே இறைவனை உணர்த்துவதே (ஆனந்த மாக்கியதே),

8.பிறந்து இறக்கும் காலவெளிகளில் (எல்லை)

9.பிணைக்காமல் (மருவா)

10.காக்கும் மெய்யறிவினைத் தருகின்ற (நெறியளிக்கும்),

11.என் தலைவனான மாணிக்க வாசகரின் (வாதவூரெங்கோன்)

12.திருவாசகம் எனும் தேன் (திருவா சகமென்னுந் தேன்)

முதல்வரி: பிறவி என்பது முன்வினை விதையால் முளைப்பதோர் பெருமரம். அந்த ‘முன்வினை’ எங்கு ஆரம்பித்தது எனச் சொல்ல இயலாது. ஆனால் ‘அறியாமை’ ஒன்றே ஆசைக்கும்,, அச்சத்துக்கும் காரணம் என்பதால், அவையே வினைகளை விளைவிப்பன என்பதால், தொடர்ந்து வரும் பிறவிகளுக்கு, ‘அறியாமையே’ காரணம்

அறியாமைக்கு ஆரம்பம் கிடையாது. நமக்கு ஒரு பொருளைப் பற்றிய அறிவு எப்போதிருந்து இல்லை? அதைச் சொல்ல முடியாது. அதனாலேதான் முதலடியில், ஆரம்பமில்லாத அஞ்ஞானத்தை பிறவிகளுக்குக் காரணமாகச் சொல்லியது. ஆனால் அறியாமை, அறிவின் எழுச்சியால், அப்போதே முடிந்து விடும்.