Python Coding Stating First Program - Tutorial Areas

by Mehedi Masum
1 year ago
311 Views

Start IDLE and open up a new window (choose New Window under the File Menu). Type in the following program.

However you have Python installed on your system, or if you opened up an on-line version of Python. Then you are now ready to start learning the basics with this introduction to Python.

Hence, if you have no prior programming experience, you should be able to get a good start. If not, do not hesitate to contact us with any questions you might have. We’ll take it slow, but before you know it, you’ll have a solid base-level knowledge about:

  • Strings

Strings are a data type in Python for dealing with text. Python has a number of powerful features for manipulating strings.

Creating a string A string is created by enclosing text in quotes. You can use either single quotes, ‘, or double quotes, “

Input Recall from Chapter 1 that when getting numerical input we use an eval statement with the input statement, but when getting text, we do not use eval. The difference is illustrated below:

Empty string The empty string ” is the string equivalent of the number 0. It is a string with nothing in it. 

We have seen it before, in the print statement’s optional argument, sep=”. Length To get the length of a string (how many characters it has), use the built-in function len. For example, len(‘Hello’) is 5.

  • Numbers
  • Strings
  • Lists
  • Booleans
  • Dictionaries
  • Variables
  • Loops
  • Iterators
  • and much more!

This introduction to Python will not dive into these subjects’ nitty-gritty details but instead touch the surface and introduce you to the basic concepts.

Further on in the tutorial, we’ll take some deep dives into specific subjects:

  • On our Python function deep-dive, for example, we’ll learn more advanced things about functions
  • We also cover virtual environments (or venv for short)
  • Our deployment section covers things like dockerizing your project
  • Our section on Python data processing goes into processing JSON with Python
  • We offer a learning path to using Python for data science

More – Python Programming Tutorial For Beginners complete lesson

Python Syntax Indentation Variables Tutorial

 

Tags:

3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *