ariables are used to store data values.
# Think of a variable as a box where you can store information
# that can be used and changed later in your program.
you can give this box any name, and it will hold whatever data you assign to it
Size: 86.21 KB
Language: en
Added: Sep 23, 2024
Slides: 22 pages
Slide Content
Introduction to Computer Principles of Programming Course: S23.CS 107 Principles of Programming/CS 100 Structured Programming Facilitator: Allan Ninyesiga Contact Information: [email protected] 0704376894, 0789981418
Learning Objectives Understand the fundamentals of programming. Learn the basic principles of writing code . code" refers to a set of instructions or commands written in a programming language that a computer can understand and execute. Explore problem-solving techniques. Gain a strong foundation for advanced programming languages.
Why Learn Programming? Programming is the backbone of the digital age. Enables automation and efficiency. Opens up numerous career opportunities. Empowers problem-solving and critical thinking.
What is Programming? Programming is the process of giving instructions to a computer. It involves writing code to solve problems or perform tasks. Computers execute these instructions, making them powerful tools.
The Programming Landscape Diverse programming languages (Python, Java, C ++, javascript etc.). Different domains (web development, data science, game development). Constantly evolving technology.
Key Programming Concepts Variables and Data Types Control Structures (if, loops, etc.) Functions and Methods Data Structures (arrays, lists, dictionaries, etc.) Algorithms
Getting Started Setting up your development environment (IDEs, text editors). Writing your first "Hello World" program.
The Problem-Solving Process Define the problem. Plan a solution. Write the code. Test and debug. Optimize and maintain.
The Role of Logic Logical thinking is crucial for programming. Breaking down complex problems into smaller, solvable parts.
Debugging Debugging is the process of finding and fixing errors in your code. Learn debugging techniques and tools.
Resources and Support Textbooks, online tutorials, and documentation. Community forums and programming communities. Office hours and support from the instructor.
Assignments and Assessments Weekly assignments to reinforce learning. Midterm and final exams to assess your understanding.
Overview of Python Python was created by Guido van Rossum in the late 1980s and was released in 1991. Python follows a philosophy known as the 'Zen of Python,' which emphasizes readability and simplicity.
Why Python? Python is popular for web development due to frameworks like Django and Flask. It's also widely used in data analysis and machine learning with libraries like NumPy , pandas, and TensorFlow .
Setting up python You can download Python from python.org and choose an IDE like Visual Studio Code or PyCharm for writing and running Python code. We shall be using IDLE for beginners
Basic Syntax fundamental Python syntax elements, such as indentation, print statements, comments , and basic arithmetic .
Variables and Data Types different data types (integers, floats, strings, lists, tuples, dictionaries), and how to work with them
Control Structures conditional statements (if, elif , else), loops (for, while), and control flow .
Functions define functions, use parameters and return values, and discuss scope .
Libraries and Modules importing modules, using external libraries
Conclusion Programming is a valuable skill with countless applications. This course will provide you with the foundation you need to excel in programming. Get ready to embark on an exciting journey into the world of computer programming!
Questions and Discussion Any questions or concerns? Let's discuss your expectations and goals for this course