Skip to content

Instantly share code, notes, and snippets.

@samarpitnasa
samarpitnasa / 1.css
Last active December 27, 2016 10:25
E-commerce website
.container {
margin: 100px auto;
width: 600px;
}
.col-sm-4 {
margin-bottom: -100px;
}
.login {
position: relative;
margin: 0 auto;
while True :
try :
n = input("Please enter an integer")
n=int(n)
break
except ValueError :
print ("No valid Integer! Please Enter again")
print ("Great, you successfully entered an integer")
a = int(input("Enter a no."))
b = int(input("Enter a no."))
c = str(input("Enter a mathematical function"))
def calculator(c):
return{
'+': a+b,
'-': a-b,
'*': a*b,
'/': a/b,
}.get(c)
i=int(input("Enter days in the year"))
if i==366:
print("The year is a leap year")
elif i==365:
print ("The year is not a leap year")
else:
print ("Year not valid")