hausaufgabe--python 17- Function definition

000-- Euclidean algorithm

running result:

 

 

001-- Decimal to Bin:

 

Running result:

 

002-- DRY principle : Don't Repeat Yourself

 

003-- using a tupel as a parameter for a function is not applicable. But we still can make it. 

 

 

004-- a funtion to calculate x^y

 

posted @ 2017-06-09 23:09  ReedyLi  阅读(202)  评论(2编辑  收藏  举报