## Common Errors Python Tutorial

In this video we'll be discussing some of the basics to debugging. In my videos, I get a lot of questions for help where people have errors and are not sure what the problem is. If they used some extremely simple debugging, they'd realize how obvious the answer is. Most of the time, the problem is a typo, followed closely by a misunderstanding of indentation and standards.

Standards how are how you organize your code. With python, unlike most languages, you define blocks of code, like functions, by indentation. Most python editors will automatically indent for you where it is necessary. With this, if you are ever coding along and find python automatically indenting you where you don't think it should, this should raise a flag for you to figure out.

There are some more in-depth common-issues that you'll find from time to time, you can find more debugging videos by searching for debugging in my channel. For now I will just keep these ones basic. The first error we'll discuss is the NameError: is not defined.

As obvious as this might appear to you, this gets people amazingly frequently. Just learn to recognize the "is not defined" as a high chance that you have typoed the definition of the variable or when you are calling it. Basically, you typo-ed somewhere.

```variable = 55
print(varaible)
```
Fail.

Next up, we have indentation issues. You will see "expected an indented block" as a popup when you never enter an indented block for something that requires it, like a function.

```def task1():

```

Nope.

So there was a lacking expected indent. How about an unexpected one?

```def task():
print ('stuff')

print('more stuff')

print('stuff')
```

Denied.

Now what happens when you don't close off your strings and move to another line?

```def task():
print('some people find themselves committing this too

print('ouch...')
```

Nay. EOL while scanning string literal.

So there we have just a handful of very common errors. There are others from time to time, but they tend to be typos or indent issues quite often.

The next tutorial: • Python Introduction

• Print Function and Strings

• Math with Python

• Variables Python Tutorial

• While Loop Python Tutorial

• For Loop Python Tutorial

• If Statement Python Tutorial

• If Else Python Tutorial

• If Elif Else Python Tutorial

• Functions Python Tutorial

• Function Parameters Python Tutorial

• Function Parameter Defaults Python Tutorial

• Global and Local Variables Python Tutorial

• Installing Modules Python Tutorial

• How to download and install Python Packages and Modules with Pip

• Common Errors Python Tutorial
• Writing to a File Python Tutorial

• Appending Files Python Tutorial

• Reading from Files Python Tutorial

• Classes Python Tutorial

• Frequently asked Questions Python Tutorial

• Getting User Input Python Tutorial

• Statistics Module Python Tutorial

• Module import Syntax Python Tutorial

• Making your own Modules Python Tutorial

• Python Lists vs Tuples

• List Manipulation Python Tutorial

• Multi-dimensional lists Python Tutorial

• Reading CSV files in Python

• Try and Except Error handling Python Tutorial

• Multi-Line printing Python Tutorial

• Python dictionaries

• Built in functions Python Tutorial

• OS Module Python Tutorial

• SYS module Python Tutorial

• Python urllib tutorial for Accessing the Internet

• Regular Expressions with re Python Tutorial

• How to Parse a Website with regex and urllib Python Tutorial

• Tkinter intro

• Tkinter buttons

• Tkinter event handling

• Tkinter images, text, and conclusion

• CX_Freeze Python Tutorial

• The Subprocess Module Python Tutorial

• Matplotlib Crash Course Python Tutorial

• Python ftplib Tutorial

• Sockets with Python Intro

• Simple Port Scanner with Sockets
{"ft_lang_label":"__label__en","ft_lang_prob":0.9412737,"math_prob":0.42495131,"size":2033,"snap":"2022-27-2022-33","text_gpt3_token_len":438,"char_repetition_ratio":0.10103499,"word_repetition_ratio":0.0,"special_character_ratio":0.2174127,"punctuation_ratio":0.12406948,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.983036,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-11T17:54:53Z\",\"WARC-Record-ID\":\"<urn:uuid:abb2485b-992d-42a0-99da-b71714c56f88>\",\"Content-Length\":\"46832\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6002d844-3481-4aaa-ad7f-663e1974df50>\",\"WARC-Concurrent-To\":\"<urn:uuid:50c809d8-63dc-4d47-a039-072b2bf200d4>\",\"WARC-IP-Address\":\"104.237.143.20\",\"WARC-Target-URI\":\"https://pythonprogramming.net/common-errors-python-3-basics/\",\"WARC-Payload-Digest\":\"sha1:CURWKGGOH6ZPDL5UVWXWCVBJ3BPSZNBI\",\"WARC-Block-Digest\":\"sha1:QFJ2JFBOXJWD37UGHJONMOWT2FFHXREO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882571483.70_warc_CC-MAIN-20220811164257-20220811194257-00722.warc.gz\"}"}