Since I learn python from codecademy and wrote some codes(sort of ),I will share some of my solutions to the problem and give my commments on these pactices.
This is the 1st part of learning: python syntax
1.Variables and Data Types
1.3
my_bool=True
#capital letter for the boolean type
2.3
def spam():
eggs = 1 2
return eggs
print spam() #be careful of "indent" always, use key "Tab"
eggs = 1 2
return eggs
print spam() #be careful of "indent" always, use key "Tab"
#""" """ for multi-line comments
Exercise : Tip Calculator
#since we use '%' to represent the module calculation,etc. we need decimals instead of percentage
print("%.2f" % total) #like C program language