Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- def us(sayi, u=2):
- print sayi ** u
- us(3) #varsayılan değer 2
- us(3,3)
- print "\n"
- def bol(bolunen, bolen, hassas=True):
- sonuc = bolunen / float(bolen)
- if hassas == True:
- print float(sonuc)
- if hassas == False:
- print int(sonuc)
- bol(5,2) #varsayılan değer True
- bol(5,2,False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement