Skip to content

Instantly share code, notes, and snippets.

View abhi1381's full-sized avatar
πŸ‘¨β€πŸ’»
Building

Abhishek abhi1381

πŸ‘¨β€πŸ’»
Building
View GitHub Profile
@abhi1381
abhi1381 / latin.py
Last active March 16, 2019 16:15
This is an imaginary translator.
#user's input sentence
initial = input('what is your text:? ').strip().lower()
#list containig splited words from the initial
original = initial.split()
#new list will contain all the new translated words
words = []
for word in original: #logic to translate the word if word starts with vowel
if word[0] in 'aeiou': #interpole 'yay' at the end of it
@abhi1381
abhi1381 / empty.py
Created January 5, 2018 17:50
age calculator
name = input("what is your name: ")
print("Your name is:",name)
print("\n")
age = int(input("what is your age: "))
print("your age is:",age)
print()
total = 100 - age
print("you will be 100 yrs old after {} years.".format(total))