Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

ananth vankipuram ultrasounder

View GitHub Profile
View listLessThanTen.py
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = []
for num in a:
if num < 5:
b.append(num)
print(b)
new_num = int(input("please enter a new number"))
for num in a:
View evenOrOdd.py
number = int(input("please enter a number"))
if number % 2 == 0:
if number % 4 == 0:
print("I like numbers" + str(number) + " " + "that are divisible by 4")
print("Cool you entered" +" " + str(number) + " " + "which is an even number")
else:
@ultrasounder
ultrasounder / NameAndAge.py
Last active Jan 11, 2019
Create a program that asks the user to enter their name and their age. Print out a message addressed to them that tells them the year that they will turn 100 years old.
View NameAndAge.py
name = input("please enter your name")
age = int(input("please enter your age"))
new_age = 100 - age
print(name + " " + "You will be 100 in" + " " + str(new_age) + "years")
number = int(input("please enter a number"))
for i in range(number):
print(name + " " + "You will be 100 in" + " " + str(new_age) + "years")
View keybase.md

Keybase proof

I hereby claim:

  • I am ultrasounder on github.
  • I am ultrasounder (https://keybase.io/ultrasounder) on keybase.
  • I have a public key ASAjDG5xe2159vBUXa_ViljDE6I1Si0QJII-VbiO5yoSSgo

To claim this, I am signing this object:

View age100.py
name = input("Hi, please enter your name")
age = int(input("please enter your age."))
year_100 = str((100 - age) + 2017)
print(name + "will be 100 years old in the year " + year_100)
@ultrasounder
ultrasounder / TimFerris#136.txt
Last active Apr 3, 2017
Book Recommendations from Tim Ferris Podcast #136 5 Chimps Theory
View TimFerris#136.txt
Distress by Greg Eagen https://www.amazon.com/Distress-Novel-Greg-Egan/dp/1597805416/ref=sr_1_11?s=books&ie=UTF8&qid=1491181613&sr=1-11&keywords=greg+egan
Red Queen by Matt Ridley https://www.amazon.com/Red-Queen-Evolution-Human-Nature/dp/0060556579/ref=sr_1_1?s=books&ie=UTF8&qid=1491181907&sr=1-1&keywords=matt+ridley+the+red+queen
Genome by Matt Ridley https://www.amazon.com/Genome-Autobiography-Species-23-Chapters/dp/0060894083/ref=asap_bc?ie=UTF8
Rational OPtimist by Matt Ridley https://www.amazon.com/Rational-Optimist-Prosperity-Evolves-P-S/dp/0061452068/ref=asap_bc?ie=UTF8
The Evolution of everything by Matt Ridley https://www.amazon.com/Evolution-Everything-Small-Changes-Transform-ebook/dp/B00S5LDWII/ref=asap_bc?ie=UTF8
The Essential Gandhi by MK Gandhi https://www.amazon.com/Essential-Gandhi-Anthology-Writings-Ideas/dp/1400030501/ref=sr_1_1?s=books&ie=UTF8&qid=1491182239&sr=1-1&keywords=the+essential+gandhi
The Tao of Philosophy by Alan Watts https://www.amazon.com/Philosophy-Alan-Watts-Love-Wis
You can’t perform that action at this time.