
Scope and Decorators - Python Basics with Sam
video description
so its 1 of 3 or 33%
door.pop(choice(range(3))) ----------------- removing 1 random item from door (33% of 'car' and 66% of 'goat')
door.remove('goat') ----------------- removing 1 'goat' from door
second_choice = door[0] ----------------- after previous two lines there is only 1 item in door. It will be 'car' every time we not get it in first line
Date: 2022-03-14
Related videos
Comments and reviews: 1
Sabrina
I'm confused why my -copy- of the poem seems to be slightly different? When I sorted the top 10 words, this is the result I got:
the : 56
and : 30
I : 27
my : 24
- : 23
of : 21
a : 15
that : 15
this : 13
chamber : 11
reply
I'm confused why my -copy- of the poem seems to be slightly different? When I sorted the top 10 words, this is the result I got:
the : 56
and : 30
I : 27
my : 24
- : 23
of : 21
a : 15
that : 15
this : 13
chamber : 11
reply
Add a review, comment















