Learn Python Programming

Learn Python Programming

book type
0 Review(s) 
FL/775765/R
English
In stock
грн95.00
грн85.50 Save 10%

  Instant download 

after payment (24/7)

  Wide range of formats 

(for all gadgets)

  Full book 

(including for Apple and Android)

Before we get started with more of our machine learning, we need to understand some of the basic parts that come with the Python coding language. This is a great coding language to work with because it is simple and easy to use. Yet it still has a lot of power behind it. All the great features that come with Python, it is the perfect choice when working on machine learning.Let’s take a look at some of the basics that come with the Python coding language.Python KeywordsFirst, we need to take a look at these important keywords in the Python language. Like with what you will find in other coding languages there is a list of keywords in Python that are meant to tell your text editor what to do. These keywords are reserved, and you should only use them for their intended purposes if you want to be able to avoid issues with your code writing. They are basically the commands that will tell your compiler how to behave and they remain reserved so that you can execute the code without a lot of issues in the process.Naming Identifiers in Your CodeWhen you are working with Python, it is important to follow the right rules when you are naming the different parts of your code. Several of these parts are known as identifiers. These can go by various names like variables, classes, entities, and functions. There are a few rules that you must follow when naming these identifiers, but the rules are going to be the same no matter which identifier you are working with. Some of the rules that identifiers need to follow when naming identifiers include:• You can use both uppercase and lowercase letters in the name of your identifier. You can also work with underscore symbols and numbers as well. Any combination of the above characters works as well, just make sure that inside the name, there aren’t any spaces. So, do not write out something like ‘My first program’. You would write it as ‘Myfirstprogram’.• Your identifier can’t start out with a number. You can use the number anywhere else that you want in the name, but it can’t be the first character of your program. If you do put a number as the first character, you are going to get an error signal when you have the compiler try to do this one. You can write something like ‘one program’, but you can’t name the identifier something like ‘1program’.• The name of the identifier can’t have one of the Python keywords in it. If you add in the keyword to the name, you are going to cause confusion in the compiler, and you won’t get the program to work.The rule for naming your identifier doesn’t have to be difficult. As long as you follow these simple rules, you can give your identifier any name that you would like. If you do happen to forget one of the rules for naming an identifier, the compiler is going to notice, and you will end up with a syntax error. You simply need to go back through and fix it and this error will go away.

FL/775765/R

Data sheet

Language
English

Reviews

Write your review

Learn Python Programming

Before we get started with more of our machine learning, we need to understand some of the basic parts that come with the Python coding language. This is ...

Write your review

Products from this category: