This website works better with JavaScript.
Explore
Register
Sign In
ottergottaott
/
programming-basics-2022
Watch
9
Star
11
Fork
You've already forked programming-basics-2022
1
Code
Pull Requests
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30
Commits
3
Branches
0
Tags
696 KiB
Tag:
Branch:
Tree:
main
main
pr2
practice4
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'main'
${ noResults }
programming-basics-2022
/
02
/
02.py
6 lines
55 B
Raw
Permalink
Normal View
History
Unescape
Escape
Code from second seminar. Here are examples of *functions* and *higher-order functions*. All signatures of functions are annotated with types and could be typechecked with mypy or pyright.
2 years ago
def
square
(
x
:
int
)
-
>
int
:
pass
square
(
"
asdasd
"
)