Python Codes

Knit Arena – Python Workshop

Python Programming workshop (Basics) was conducted on 20th October 2018, 10.30am to 12.30pm atย St. John’s Polytechnic College, Hubballi.ย  The session was organized by Knit Arena. Details Updated here: Python Programming Workshop Yes, the goal ultimatum is make our engine go live. But all this to keep our existence. Up and running.

General Discussions

Random Poem Generator

This is a python code for a random poem generator. The code has a lot of scope for improvements. This project was implemented to learn python and python gui using tkinter. It uses python 3.4, tkinter and BeautifulSoup API’s. Link: Poem Generator

General Discussions

Keylink Data Structure

We often encounter projects and experiments where keywords are associated to the web links. For each of those keywords present in the list, one or more links are collected to gather and process the data related to it. Keylink data structure maintains a web link to every keyword present in the list. The number of… Continue reading Keylink Data Structure

Python Codes

Handling Array of Long Bit Strings – Python

When working with data science projects or any other as well, we might need to work ย with long binary strings. Bitarray is the package that is need of the hour. However we might also need an array of bit strings. In that case, one option is to store every bit string in a dictionary data… Continue reading Handling Array of Long Bit Strings – Python

Python Codes

Random Poem Generator

This is a python code for a random poem generator. The code has a lot of scope for improvements. This project was implemented to learn python and python gui using tkinter. It takes a keyword as a input and generates a random 4 line poem as output. It uses python 3.4, tkinter and BeautifulSoup API’s.… Continue reading Random Poem Generator

General Discussions

Handling the vcvarsall.bat error

We might end up with the “unable to findย vcvarsall.bat” error while installing the python packages on windows system. Why it happens? When we try to install the python package, it has to compile that c/c++ file from source(python is not just a .py) for which there is a need of compiler(a supported version of Visual… Continue reading Handling the vcvarsall.bat error

Python Codes

RGB and Hex Conversions – Python

While dealing with color operations we would need to work with RGB and Hex values and need conversation between formats for the operations. Here are the python code snippets to achieve the same. 1. Converting RGB to HEX 2. Converting HEX to RGB

Python Codes

Warm/Cool Color Classification – Python

The code is appropriately commented to understand the necessitates.

Python Codes

Getting Adjacent Colors – Python Code

Adjacent colors are obtained by rotating 30 and 360 degrees of any given color from the color wheel. Below is the Python code to achieve the same. The input supplied is Hex value of color and output is the list of two adjacent colors (Hex value).

General Discussions · Python Codes

Complementary Colors – Python Code

Colors that are opposite to each other on the color wheel are called complementary colors. You can look out on web for more information. The function below takes a color as a input (hex-value) and returns its complementary color (hex-value).