Skip to content

Instantly share code, notes, and snippets.

View narainravi24's full-sized avatar

Ravi Narain narainravi24

View GitHub Profile
@narainravi24
narainravi24 / kabala-calc.py
Created September 1, 2019 02:02 — forked from pratul/kabala-calc.py
A numerological calculator based on the Kabbalah alphabet. (from Linda Goodman's "Star Signs")
#!/usr/bin/python
# authored by Pratul Kalia in January 2011.
# Released into the public domain.
import sys
# Chaldean-Hebrew Kabala Numberical Alphabet.
# Taken from the book "Star Signs" by Linda Goodman.
kabala = {'a': 1, 'b': 2, 'c': 3, 'd': 4,
'e': 5, 'f': 8, 'g': 3, 'h': 5,

Intro to Advanced Python

By Adam Anderson

[email protected]

These notes are mostly just summaries of the provided references. The purpose of this document is to centralize the resources I found useful so they would be easy to find. Most definitions and explanations are paraphrased or quoted directly from the sources.

Table of Contents

@narainravi24
narainravi24 / lettergame.py
Created July 29, 2019 06:33 — forked from nithishvarma/lettergame.py
it is a very simple game in phython to undertand coding in python
import os
import random
import sys
# it is a words in a list
words = [
'apple',
'banana',
'orange',
'coconut',
'strawberry',
@narainravi24
narainravi24 / Web 3 Python - Transaction
Created July 29, 2019 05:53 — forked from CavaTrendy/Web 3 Python - Transaction
How to write transaction on Infuria with data
####
# How to write transaction on Infuria with data by Giorgio Alessandro Motta
####
####
# Import
####
from web3 import Web3
import json
*****
*Author: Giorgio Alessandro Motta
*
*****
import datetime
import lxml.html as lh
import pandas as pd
import requests
from selenium import webdriver
@narainravi24
narainravi24 / journal.py
Created July 29, 2019 05:52 — forked from CavaTrendy/journal.py
Writing a Journal
'''
This is the Journal module
created with the help of Python Jumpstart by Building 10 Apps
'''
import os
def load(name):
'''
This method creates and load new journal
@narainravi24
narainravi24 / program.py
Created July 29, 2019 05:52 — forked from CavaTrendy/program.py
Weather for the Netherlands
import requests
import bs4
import collections
'''
Created with the help of Python Jumpstart by Building 10 Apps
'''
WeatherReport = collections.namedtuple('WeatherReport',
'cond, temp, scale, loc')
''''
This is the first part where we define teh main function of the program Weather App
'''
Created with the help of Python Jumpstart by Building 10 Apps
'''
import datetime
def print_header():
print("----------------------------------")
print("BIRTHDAY APP")
@narainravi24
narainravi24 / Module 1 Fundamentals 0.0
Created July 29, 2019 05:52 — forked from CavaTrendy/Module 1 Fundamentals 0.0
Introduction to Python - Unit 2 Fundamentals
# [ ] review and run example - note the first element is always index = 0
student_name = "Alton"
print(student_name[0], "<-- first character at index 0")
print(student_name[1])
print(student_name[2])
print(student_name[3])
print(student_name[4])
# [ ] review and run example
student_name = "Jin"
@narainravi24
narainravi24 / Module 1 Basic 0.py
Created July 29, 2019 05:51 — forked from CavaTrendy/Module 1 Basic 0.py
Introduction to Python - Unit 1 Absolute Beginner
# Task 2 use a print() function with comma separation to combine 2 numbers and 2 strings
print("I'm picking you up at",16, "sharp not at ", 17,"Rember!")
# Task 3 display text describing an address, made from stings and variables of different
street = input ( "What is the name of your street?")
str_number = input ("And the number?")
print ("So it is", street, str_number)
# Task 4[ ] define a variable with a string or numeric value
num_newst = 50