Skip to content

Simple Python Idle programs for beginners to help them understand about Python language and its interpreters.

Notifications You must be signed in to change notification settings

digitallyamar/Python-IDLE-Simple-Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Overview

This is a repository of simple Python programs for beginners that is expected to be run using Python's IDLE IDE.

Pre-requisites

  • In order for a student to make use of this Python IDLE beginners program repo, it is expected that the student has already installed latest version of Python 3 on their machine.

  • Students are also expected to have already installed Python IDLE IDE on their machine.

Results

At the end of completing these set of programs, we hope that students will have basic understanding of how to execute Python commands on a Python shell, particularly on Python IDLE IDE.


Lesson 1 - How to use a Python IDLE interpreter

Objective

Learn how to use a Python IDLE interpreter. Also verifies that your Python and IDLE interpreter is installed properly.

Steps

  1. Open up the IDLE application, You can find the application by typing in the name of the program in your Operating System's search bar.

  2. Enter a valid number, say for example 4

    Python 3.5.2 (default, Nov 12 2018, 13:43:14) 
    [GCC 5.4.0 20160609] on linux
    Type "copyright", "credits" or "license()" for more information.
    >>> 4
    4
    >>>
    

Expected Outcome

You should see the Python IDLE interpreter printing back the value 4 as shown above.


Lesson 2 - Learn what is a Python expression. Adding numbers using Python IDLE interpreter.

Objective

Learn how to use a Python IDLE interpreter to add numbers.

Steps

  1. Open up the IDLE application, You can find the application by typing in the name of the program in your Operating System's search bar.

  2. Enter the following expression in your Python IDLE interpreter

    Python 3.5.2 (default, Nov 12 2018, 13:43:14) 
    [GCC 5.4.0 20160609] on linux
    Type "copyright", "credits" or "license()" for more information.
    >>> 2 + 4
    6
    >>>
    

Python expressions are a form of evaluations that when done results in a final value that can be printed on the screen. In this case, the line 2 + 4 is an expression that when evaluated by the Python interpreter results in a final value 6 that can be printed on the screen as shown above.

Learn more about Python Expressions

Expected Outcome

You should see the Python IDLE interpreter printing back the value 6 as shown above.

About

Simple Python Idle programs for beginners to help them understand about Python language and its interpreters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published