Flyttet python-kurset ut av samlerepoet

This commit is contained in:
2025-03-04 15:18:01 +01:00
parent c9cc068203
commit f9eb912b6a
38 changed files with 3 additions and 1164 deletions

View File

@@ -0,0 +1,17 @@
"""
In python, all things are object.
This means that all functionality associated with a piece of data is stored with the data.
"""
# Making a new integer with the int constructor:
a = int(5)
b = int(4)
# Adding them together
print(a + b)
# Or without the read macro and function call:
print(a.__add__(b).__repr__())
# The most useful method ever
print("Hello {}\nI am {}".format("people who are still here", "the master of the .format method on strings"))