Codecademy - Python: Tutorial #17

preview_player
Показать описание
Enroll for coding exercises, projects, tutorials, and courses...

Unit 7 - Lists and Functions (55% Completion)
=====================================
0:00 -- 1. Welcome to Battleship!
3:53 -- 2. Getting Our Feet Wet
4:33 -- 3. Make a List
10:49 -- 4. Check it Twice
12:42 -- 5. Custom Print
16:04 -- 6. Printing Pretty
25:44 -- 7. Hide...
=====================================

This is part 17 of the Codecademy Python Walkthrough Tutorial. We cover topics like nested for loops, random module, randint, imports, inclusive endpoints, standard python library, 2-Dimensional lists, nested lists, nested data structures, 5x5 board, Battleships, and much more!

======================= ABOUT PYTHON CODECADEMY SERIES =================

The target audience is beginners or developers looking to pick up Python. I also emphasize the importance of writing good code and I go through the first part really fast.

I will literally be going through every single thing and breaking it down for you so there is nothing for you that would be scary. You can watch me do it and you can simply follow along you will learn ALL the basics. I swear I wish something like this was out there when I started learning because everyone else explains things in such a complicated way and makes it so boring! I honestly think programming is based upon exploration and creativity rather than some mathematical/logical genius frame of mind! I spent a lot of hard work in making this so I hope you guys enjoy and learn something out of it while having fun! This is targeted towards beginners, for developers looking to learn python, or for individuals looking for a refresher on basics in computer programming!!

============================= CHANNEL INFO ============================

Enroll for coding exercises, projects, tutorials, and courses...

Clever Programmer
Snapchat ► Rafeh1
Рекомендации по теме
Комментарии
Автор

Best tutorial i've found so far. Really appreciate it!

licht
Автор

Thank you for this vid!! Helped out so much

Jojo-oyvn
Автор

Your videos show be on on the Code Academy site because they are so good!

usparktalk
Автор

Thanks bruv! Really explained it quite well, i understand now. Cheers. (Liked, subscribed, Adblocker is off)

thomaswilburn
Автор

from random import randint

board = []

for i in range(0, 5):
board.append(['O'] * 5)

print(board)
print('\n\n')

def print_board(board):
for row in board:
print(' '.join(row))
random_row = randint(0, 4)
random_col = randint(0, 4)
board[random_row][random_col] = "HIDDEN"

print_board(board)

jramreddy
Автор

Am I very bad if I couldn't even make it through 3/19 without your help? It seems that I'm not as good at it when I have to read instructions in english (I'm from Poland) and when you tell it, I listen and understand it more, but I'm kinda scared that I just can't logically think... idk if this stuff is for me :(

TheMitussS
Автор

Can you explain what " print_board(board) " does?

frednetherton
Автор

What is the . used for in python
Example self.droid = sl4a.Android() the period dot what is it used for what is it called are why is it need

slackjaw
Автор

Hello mystic mat who predicts dis tings

rowshanjahan
Автор

I'm so close to my target 60% before reset (got 57% in 6 days;))

rowshanjahan
Автор

def print_board(board):
for row in board:
print " ".join(row)
I stic here help me

cder
join shbcf.ru