Quick actions

cmd+k|ctrl+k

Navigation

Languages

ZTM wprowadzenie do programowania

Snippet info

Language

Python

Visibility

public

Author

cslxuser

Created

2025-03-15T10:48:15.079649Z

Updated

2025-03-15T10:48:15.079649Z

# fundamental Data Types
# int and float
# print(type(2 + 4))
# print(type(2 - 4))
# print(type(2 * 4))
# print(type(2 / 4)) #0.5
# print(type(0000.7))

# print(2 ** 3) # 2^3
# print (5//4) # rounded down to integer
# print (5%4) # modulo, czyli reszta (remainder)

#math functions - these are ACTIONS (out of Data Types, Terms, Best Practicies)

print(round(3.1) ) #zaokrąglenie
print(abs(-10)) # wartość bezwzględna (absolute value)

tuple 
set
dict


#Classes -> custom types


#Specialized Data Types -> realized by Modules

None
INFO