Learning to Program in Python Concept 0 READ &
1 / 1

Learning to Program in Python Concept 0 READ &

Author : alida-meadow | Published Date : 2025-05-17

Description: Learning to Program in Python Concept 0 READ MODIFY Learning Intentions From this lesson the students will be able to Read and understand some basic code Modify the code to do other tasks Debug some syntax errors Debug some logical

Presentation Embed Code

Download Presentation

Download Presentation The PPT/PDF document "Learning to Program in Python Concept 0 READ &" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Transcript:Learning to Program in Python Concept 0 READ &:
Learning to Program in Python Concept 0 READ & MODIFY Learning Intentions From this lesson the students will be able to: Read and understand some basic code Modify the code to do other tasks Debug some syntax errors Debug some logical errors Write my own program in Python STRINGS Traditionally, when learning to program, your first line is: “hello world” is an example of a string. You can enclose it in single quotes also. (‘hello world’) How to Write a Program to …. 1. Ask the user of your program for their age. 2. Add 100 to their age. 3. Print out their age in 100 years. LO 1.22 students should be able to read, write, test, and modify computer programs Match up the line of Python code to the line of instruction. Test your program. 1. Ask the user of your program for their age. 2. Add 100 to their age. 3. Print out their age in 100 years. LO 2.20 students should be able to identify and fix/debug warnings and errors in computer code and modify as required A first program 1. Ask the user of your program for their age. 2. Add 100 to their age. 3. Print out their age in 100 years. PYTHON doesn’t like TYPOs Each line has 1 typing error. Generally called SYNTAX errors. LO 2.20 students should be able to identify and fix/debug warnings and errors in computer code and modify as required Changing the ORDER of the code PREDICT what might happen here, when line 2 is the first line. Changing the ORDER of the code PREDICT what happens if line 3 is the first line executed (i.e. if line 3 is the first line to be run) Correct order but Remove INT() PREDICT what happens if INT() is removed around userAge. LO 2.20 students should be able to identify and fix/debug warnings and errors in computer code and modify as required PYTHON loves CHARACTERS 2 KEY lessons to draw from these 3 lines of code. Firstly Python reads input from the user as strings. All numbers look like text/ characters/ strings to Python. You CAST the variables 2 KEY lessons to draw from these 3 lines of code. Secondly INT() changes the input from the user to an integer. INT stands for INTeger. How do you know how to write correct PYTHON? Consult your Cheat Sheet There are 2 on

Download Document

Here is the link to download the presentation.
"Learning to Program in Python Concept 0 READ &"The content belongs to its owner. You may download and print it for personal use, without modification, and keep all copyright notices. By downloading, you agree to these terms.

Related Presentations

Why you should hire Python developers from an outsourcing company [READING BOOK]-Illustrated Guide to Python 3 A Complete Walkthrough of Beginning Python [FREE]-Python 3 Books in 1 Python Basics for Beginners + Python Automation Techniques [eBOOK]-Python for Beginners A Smarter Way to Learn Python in 5 Days and Remember it Longer. [DOWLOAD]-Python Programming for Beginners An Introduction to the Python Computer Language [DOWLOAD]-Machine Learning 4 Books in 1 Basic Concepts + Artificial Intelligence + Python [READ]-Easy Learning Python 3 Python for Beginner\'s Guide (Easy Learning Python and design [BEST]-Python: 3 Books in 1: Python Basics for Beginners + Python Automation Techniques [eBOOK]-Python for Beginners: A Smarter Way to Learn Python in 5 Days and Remember it [DOWLOAD]-Python Programming for Beginners: An Introduction to the Python Computer Language [FREE]-Programming 31: Python Programming In A Day  Excel Shortcuts (Python Programming, Why Choose Python As Backend Development?