Python at Unimelb
Digital Skills TrainingSupport
  • 👩‍💻Python Digital Skills Training
  • Welcome
    • 🧐Training overview
      • 😇About Trainer
        • 😚Python Class
        • 🎬Python Tutorial
        • ✨GitHub
    • ⚠️Eligibility and Requirements
    • 🤏Expectations
    • 🦸Support
  • Python Workshops
    • 🤖Install Python
    • 🔮Virtual Environment
    • ⛔Error
    • 🎲Introduction to Python
    • 🐢Data Structure
    • 🧠Think like Python
    • 🔢Introduction to NumPy
    • 🔢Numpy 2
    • 🐼Introduction to Pandas
    • 🐼pandas 2
    • 🐼pandas 3
Powered by GitBook
On this page
  • Topics Covered in This Session
  • Introduction to Python Document 📚

Was this helpful?

  1. Python Workshops

Introduction to Python

PreviousErrorNextData Structure

Last updated 2 months ago

Was this helpful?

Welcome to the Introduction to Python session! This tutorial is designed to introduce absolute beginners to Python programming. By the end of this session, you’ll understand how to write your first Python program, use comments effectively, handle errors, and work with essential data types such as strings, numbers, and booleans.

Topics Covered in This Session

  1. Hello World

Writing your first Python program is an exciting start to your coding journey. The "Hello World" program is a simple script that prints a message to the screen, serving as an introduction to Python's syntax.

  1. Comments:

Comments are notes added to your Python code to make it easier to understand. Python ignores comments when running the code.

  1. Errors

Errors occur when Python encounters an issue in your code that prevents it from running. Python provides clear error messages to help you debug.

  1. Assigning:

What does it mean by variables and how to assign values to them in Python? This involves choosing a name for a variable and associating a value with it. Selecting an appropriate variable name is crucial, and there are some important rules and limitations to consider in the naming process.

  1. DataTypes

We will explore fundamental data types such as numerics, booleans, and strings along with additional functions associated with each.

5.1. Numeric:

Numeric data types include integers (int) for whole numbers and floating-point numbers (float) for decimals. These types are used to represent and perform operations on numerical values.

5.2. Boolean:

Boolean data type (bool) represents binary values, True or False, used for logical operations and decision-making in programming. Booleans are integral to control flow and conditional statements in Python code.

5.3. String:

Strings (str) are sequences of characters enclosed in quotes, and they are versatile for representing text. String manipulation and operations make them fundamental for handling textual data.

Introduction to Python Document 📚


🎲
11KB
Say Hello to Python Introduction.ipynb
A variable is like a box to store values
The Python programming language supports numbers and letters in various data types