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
572f29cb
Commit
572f29cb
authored
Dec 01, 2023
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pracownik - zerowanie finally
parent
83980152
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
pracownik1.py
dzien7/klasy_wprowadzenie/pracownik1.py
+5
-4
No files found.
dzien7/klasy_wprowadzenie/pracownik1.py
View file @
572f29cb
...
...
@@ -33,10 +33,11 @@ class Pracownik:
self
.
suma_godzin
+=
godziny
def
wyplata
(
self
):
wynik
=
self
.
suma_godzin
*
self
.
stawka
+
self
.
suma_nadgodzin
*
self
.
stawka
*
2
self
.
suma_godzin
=
0
self
.
suma_nadgodzin
=
0
return
wynik
try
:
return
self
.
suma_godzin
*
self
.
stawka
+
self
.
suma_nadgodzin
*
self
.
stawka
*
2
finally
:
self
.
suma_godzin
=
0
self
.
suma_nadgodzin
=
0
def
test_jedna_praca
():
...
...
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