FizzBuzz Problem | Python

FizzBuzz Problem in Python # write program to print number from 1 to 100 # multiple of 3 print "fizz" instead of number # multiple of 5 print "buzz" instead of number # for number which are mutiple of both 3 and 5 print "fizzbuzz" start = 1 end = 101 val_3 = 3 val_5 … Continue reading FizzBuzz Problem | Python

Anagram problem | Python

Solution for Anagram problem in Python. #Anagram problem # input1 = 'public relations' # output1 = 'crap built on lies' input = 'client eastwood' output = 'old west action' def check_for_anagram(input1,output1): """ checks for Anagram """ input1 = input1.lower() output1 = output1.lower() len_of_input1 = len(input1) len_of_output1 = len(output1) input_1_dict = {} output_1_dict = {} if … Continue reading Anagram problem | Python

Create Pycharm Launcher in Ubuntu

Quick way to create Pycharm launcher.  Start Pycharm using the ./pycharm.sh file located under bin folder. Once the Pycharm application loads, navigate to tools menu and select "Create Desktop Entry.." This type of window will open up.  Check the box if you want the launcher for all users. If you Check the box i.e "Create … Continue reading Create Pycharm Launcher in Ubuntu

Fetch upcoming 10 events of user using google calendar API in Python

  * Python command-line application that makes requests to the Google Calendar API to fetch upcoming 10 events. The entire feature can be achieve in three steps. Setting up Google Calendar API. Installing google client library. Creating python script. Let's Get Started : Setting up Google Calendar API. Go to google console. Create or select … Continue reading Fetch upcoming 10 events of user using google calendar API in Python

Deploy Django Project Using NGINX and Gunicorn

Meet Django Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source. In this guide, we … Continue reading Deploy Django Project Using NGINX and Gunicorn

How to create Auto Destroying Messages in Django ?

Auto Destroying Message Auto Destroy Message after Reading Auto Destroy functionality comes handy when you want to share critical data with someone like user credentials. AIM Create Mission Impossible like auto deletion message. Maintain high level of encryption. No loop holes so handle DB attack also. Features Creates Encrypted Messages. Unique hashed URL is provided … Continue reading How to create Auto Destroying Messages in Django ?