Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projet AP
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
Komi Dogbe
projet AP
Commits
d8c382cf
Commit
d8c382cf
authored
1 month ago
by
Komi Dogbe
Browse files
Options
Downloads
Patches
Plain Diff
nouvelle modification
parent
476d7d67
Branches
main
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
voiture.py
+31
-1
31 additions, 1 deletion
voiture.py
with
31 additions
and
1 deletion
voiture.py
+
31
−
1
View file @
d8c382cf
class
voiture
class
Voiture
:
"""
à_remplacer_par_ce_que_fait_la_classe
Exemple(s) :
$$$
"""
def
__init__
(
self
,
couleur
:
str
,
taille
:
int
,
position
:
tuple
,
orientation
:
str
):
"""
initialisation des atributs de la classe voiture
Précondition :
Exemple(s) :
$$$
"""
self
.
couleur
=
couleur
self
.
position
=
position
self
.
taille
=
taille
self
.
orientation
=
orientation
self
.
nom
=
couleur
def
__repr__
(
self
)
->
str
:
"""
me permet une representation textuelle des information sur une voiture
Précondition :
Exemple(s) :
$$$
"""
return
f
"
Voiture(
{
self
.
couleur
}
,
{
self
.
position
}
,
{
self
.
taille
}
,
{
self
.
orientation
}
)
"
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