Continuing with the biweekly demo days, we conducted our 3rd Demo Day on Thursday 15th February, 2018. This time around we had 3 demos, a welcome increment from the previous events!

Siddharth Kannan kicked off with Cutouts while Nishant Nikhil demonstrated how PlayNext can help us out with managing YouTube’s suggested video playlists. Naresh joined in with an impromptu presentation of the redesigned MyKGP Dashboard.

Vivek Aithal and Sreejith joined us along with Vikrant Varma on the Hangouts to moderate the session and share their feedback on the projects.

Demos

  • Cutouts by Siddharth

The first demo of the day was…


There are about 15 million lines of Python code starting with a variant of the form: # -*- coding:<some encoding> -*-hosted on GitHub. To any person learning Python, this might seem as another single-line “comment”. It sure did look that way to me when I started out programming in Python. However, I soon realized that there is something mysterious and esoteric about it. It was some kind of special comment which was being used by every Python developer across codebases. In this article, I will try to break down the concepts behind this line of code.

Our Toolkit

ASCII: A character set…


One of the more impressive features of Python language is the use of “for-each” looping construct that has awed me ever since I started out with Python. For the uninitiated, here is a simple for loop which prints the first 10 natural numbers:

for num in range(1, 11):
print(num)

We can also loop over the primitive types such as list, tuples, dictionaries and strings in similar ways:

numbers = [1, 2, 3, 4, 5]
record = ('Kshitij', 21, 'Loves Python')
details = {
'name': 'Kshitij',
'age': 21
}
for num in numbers:
print(num) # 1 2 3 4 5
for…

Kshitij Saraogi

The Minimalist Journeyman

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store