Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mustafamuratcoskun
GitHub Repository: mustafamuratcoskun/Sifirdan-Ileri-Seviyeye-Python-Programlama
Path: blob/master/İleri Seviye Veri Yapıları ve Objeler/Videolardaki Notebooklar/İleri Seviye Sayılar.ipynb
765 views
Kernel: Python 3
bin(4)
'0b100'
bin(19)
'0b10011'
bin(445)
'0b110111101'
hex(20)
'0x14'
hex(512)
'0x200'
hex(300)
'0x12c'
abs(-4)
4
abs(-5)
5
abs(-1.4)
1.4
abs(5)
5
round(4.8)
5
round(4.5)
4
round(4.3)
4
round(3.2229,3)
3.223
round(3.2224,3)
3.222
max(3,4)
4
max(3,4,5,6,10,-2,34)
34
min(3,4)
3
min(3,4,5,6,10,-2,34)
-2
max([1,2,3,4,5,6,7])
7
min([1,2,3,4,5,6,7])
1
max((1,2,3,4,5,6,7))
7
sum([1,2,3,4,5,6])
21
sum((1,2,3,4,5,6))
21
sum((1,2,"Python",4,5,6))
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-43-c4aa3d654096> in <module>() ----> 1 sum((1,2,"Python",4,5,6)) TypeError: unsupported operand type(s) for +: 'int' and 'str'
sum((1,2,3.4,4,5,6))
21.4
pow(2,4)
16
2 ** 4
16
pow(17,2)
289
pow(64,0.5)
8.0