So, today I started my journey in Python from scrimba. It is a free course available in %[t.co/I4qPnNI2gZ?amp=1].
It is an interactive video where I can pause the video and try out code snippet and see the result for myself to see. Well, this is what I did:
1. I signed up for the free course
First things first, I signed up for the free course and got started
2. Writing code in index.py file
Now, there is already an index.html file which supports script from brython.
Now in this file, I have commented the 'javascript' functionality because I will not be coding in javascript here. Here, it is also ensured that it runs the index.py file where my python code is written.
Now, in index.py file, I was experimenting with variables and print functionality. I started off with writing a simple print function and an input taker which takes input variables
The output is as:
After this I started experimenting with variables. I found out that there is no declaration of variables involved. It is straight assignment and the assignment can be changed anytime even.
In this example 'party_goers' is assigned a value 6 with the help of operator '='. Similarly, the variable 'name' is also assigned value 'Sholanki' at first. Later on, I change the value to 'Nia' and it takes up that value. This was easy to do and understand.
What I am trying to achieve here
I am exploring Python as a new language and I will be posting more of my adventures here. As of now, there is no end goal in mind. I am having fun coding in this new language and understanding the semantics of it for now.
I am also starting a blog in Ghost. One of the articles are Welcome
That's all folks! Goodbye for now