Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
elavatkuvat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Annukka Heinonen
elavatkuvat
Commits
f5eb3084
Commit
f5eb3084
authored
1 year ago
by
Annukka Heinonen
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
e529c3db
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
admin.py
+24
-0
24 additions, 0 deletions
admin.py
with
24 additions
and
0 deletions
admin.py
0 → 100644
+
24
−
0
View file @
f5eb3084
def
admin
():
while
True
:
print
(
"
1 lisää elokuva
"
)
print
(
"
2 lisää näytös
"
)
print
(
"
3 selaa varauksia
"
)
print
(
"
4 palaa aloitusvalikkoon
"
)
print
(
"
0 sulkee järjestelmän
"
)
arvo
=
int
(
input
(
"
Anna toiminto:
"
))
if
arvo
==
1
:
print
(
"
Tästä lisätään elokuva
"
)
elif
arvo
==
2
:
print
(
"
Tästä lisätään näytös
"
)
elif
arvo
==
3
:
print
(
"
Tästä selataan varauksia
"
)
elif
arvo
==
4
:
print
(
"
Tästä palataan aloitukseen
"
)
elif
arvo
==
0
:
print
(
"
Kiitos ja hei!
"
)
break
else
:
print
(
"
Valinta ei käy! Jos haluat sulkea ylläpidon, paina 0.
"
)
#nelosvaihe ei välttämättä toteudu, jos en keksi miten alkuun palataan
admin
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment