Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kurs_alx_pcz
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
kurs_alx_pcz
Commits
ba948686
Commit
ba948686
authored
Dec 01, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turtle wielokąt - v2
parent
485206dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
wielokat_ladny.py
dzien7/zolw/wielokat_ladny.py
+22
-0
No files found.
dzien7/zolw/wielokat_ladny.py
0 → 100644
View file @
ba948686
import
turtle
import
math
boki
=
int
(
turtle
.
numinput
(
'Pytanie'
,
'Podaj liczbę boków'
))
t
=
turtle
.
Turtle
()
OBWOD
=
1200
kat
=
360
/
boki
bok
=
OBWOD
/
boki
t
.
penup
()
t
.
goto
(
-
bok
/
2
,
-
OBWOD
/
(
2
*
math
.
pi
))
t
.
pendown
()
t
.
width
(
4
)
t
.
color
(
"blue"
,
"#FFFFDD"
)
t
.
begin_fill
()
for
i
in
range
(
boki
):
t
.
forward
(
bok
)
t
.
left
(
kat
)
t
.
end_fill
()
turtle
.
mainloop
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment