Indexes and slices - Python 3 Programming Tutorial p.5

preview_player
Показать описание
Using indexes to modify our Tic Tac Toe game board

#python #programming #tutorial
Рекомендации по теме
Комментарии
Автор

It's daily routine now hope I can learn machine learning after it😅

dishant-gupta
Автор

3:45 this probably doesn't have an answer other than "because".. but wouldn't it make more sense for it to be
"game[0[1]]"
(^ doesn't work, i tried lol)

it seems like it'd be a lot easier to keep track of super nested stuff that way

frosty
Автор

First of all, I really love that you're redoing your Python3 series....and you've a nice smooth teaching voice - which is always quite beneficial if your trying to learn something new!
May i ask if you're going to introduce also VS Code and therefore it's Python3 environment?

I doing computer only stuff when it's nice and bright light outside. So i do that stuff often at night times (way too often till the sunrise) *thumbs up*

Thomas-obfe
Автор

I'm trying to print multiple elements from a list on a line together. Specifically two at a time. Using a for loop I am able to print the elements all on separate lines. I can't seem to find a solution within the videos.

joshuaburnworth
Автор

How to type a square brackets in keyboard

onesimuschandrapradhan
Автор

print (l[1:3])- Hw does this print 2 and 3 since it indicate the indexes, it should actually print 2, 3 and 4 right.. Can you pls clarify?

jayanthr
Автор

Hey!
This is my input:
a = [10, 20, 30, 40, 50, 60, 70]
print(a[::5])

output:
[10, 60]

Can you tell me what is going on here?

shritamkumarmund
Автор

what happened to the indistinct chatter + frequency sound (if I'm not mistaken) on the intro of your tutorials?

wismilak
Автор

Disregarded one Pep 8 guideline by assigning a variable as l (i.e. lowercase L)... Threw me for a bit of a loop there thinking it was number 1

yakunats
Автор

Have you done any tutorial series on Web authentication methods? How to scrap or navigate through websites that requires authentication?

vigneshlakshmanan
Автор

In print(l[1:3]) it prints from 1st index to 2nd index.But it should print till 3rd index right?Is the 3 not the index?Could you please explain

RohanD
Автор

Write code that uses slicing to get rid of the the second 8 so that here are only two 8’s in the list bound to the variable nums.
nums = ['4, 2, 8, 23.4, 8, 9, 545, 9, 1, 234.001, 5, 49, 8, 9, 34, 52, 1, -2, 9.1, 4'] ???


Anyone can figure this one out?

kevinsheng
Автор

At 3:10 "...that would be a mistake..." Why!? When we know why things shouldn't be used, we will also learn when they *should* be used.

LabGecko
Автор

Hey! What type of laptop/pc would you recommend?

annarosegacha
Автор

i think you should do a series on seaborn too. By the way thanks

dawah
Автор

You are like me do programming at night. I think programmers have no specific time for programming whenever we get time we code

imtiazahmad
Автор

#hey, why this works:
def PurgeGameMap():
for x in range(len(game)):
for y in range(len(game[x])):
game[x][y] = E
#and this doesnt?
def PurgeGameMap():
for x in game:
for y in game[x]:
game[x][y] = E

pawlack
Автор

sentdex  I beg of you, PLEASE remove that comma after game[2] and the closing square brace lol

lank_asif
Автор

hey bro copy paste the code in description pls

thomasbiju
Автор

Lmao how do i access that party button?

woahart