meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
programming:python [2019/02/11 12:24] niziak |
programming:python [2020/07/03 09:51] (current) niziak ↷ Page moved from python to programming:python |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Python ====== | ||
+ | |||
====== OOP ====== | ====== OOP ====== | ||
+ | |||
===== Call parent constuctor ====== | ===== Call parent constuctor ====== | ||
Line 22: | Line 25: | ||
<code python> | <code python> | ||
print("{firstname} {lastname}".format(firstname="Horst", lastname="Gutmann")) | print("{firstname} {lastname}".format(firstname="Horst", lastname="Gutmann")) | ||
+ | </code> | ||
+ | |||
+ | * new f-strings in Python 3.6 | ||
+ | <code python> | ||
+ | name = 'Fred' | ||
+ | age = 42 | ||
+ | print(f'He said his name is {name} and he is {age} years old.') | ||
</code> | </code> | ||