Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Informatique II - TP4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Rayan Mohamed Mallem
Informatique II - TP4
Commits
e2d6d29b
Commit
e2d6d29b
authored
9 months ago
by
Ray10RM
Browse files
Options
Downloads
Patches
Plain Diff
Implémentation de la méthode dequeue
parent
2458d131
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
infoII_tp4_ex3.py
+4
-1
4 additions, 1 deletion
infoII_tp4_ex3.py
with
4 additions
and
1 deletion
infoII_tp4_ex3.py
+
4
−
1
View file @
e2d6d29b
...
...
@@ -19,7 +19,10 @@ class File:
self
.
items
.
append
(
entre
)
def
dequeue
(
self
):
return
self
.
items
.
pop
()
if
self
.
is_empty
():
return
"
La pile est vide !
"
else
:
return
self
.
items
.
pop
(
0
)
def
is_empty
(
self
):
return
(
self
.
items
==
[])
...
...
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