Exercise - input function

Exercise - input function

Preview unavailable

You must log in or sign up to view this lesson.

LoginSign up

Fundamentals of Programming: Master Python & Embrace the Power of AI

Buy nowLearn more

Section 1: Introduction to Scratch

  • Important Instructions!
  • lesson 1 - getting to know scratch
  • lesson 2(a) - writing your first program
  • lesson 2(b) - first program continued
  • lesson 3(a) - introducing motion and loops
  • lesson 3(b) - motion and loops continued
  • lesson 3(c) - programming multiple scripts
  • lesson 4(a) - making clones
  • lesson 4(b) - programming clones
  • lesson 4(c) - clones making clones
  • lesson 4(d) - ghosting clones
  • Objectives Summary
  • Exercise 1
  • Exercise 1 - solution
  • Exercise 2
  • Exercise 2 - solution

Section 2: Build Ping pong game

  • important instructions - must read
  • lesson 1 - project intro
  • lesson 2(a) - explaining coordinates
  • lesson 2(b) - programming paddles movement
  • lesson 3(a) - ball movement and directions
  • lesson 3(b) - ball movement continued
  • lesson 4 - scoring and finalizing the game
  • How to share your projects with others

Section 3: Build Paint application

  • lesson 1 - project intro
  • lesson 2 - creating sprites
  • lesson 3 - creating sprites continued
  • lesson 4 - drawing with the pencil
  • lesson 5 - finishing the application
  • important tips - must read
  • Exercise 1
  • Exercise 1 solution
  • Exercise 2
  • Exercise 2 solution
  • Mini Project

Section 4 : Build Shoot the monster Game

  • Download Project file
  • lesson 1 - project intro
  • lesson 2 - programming the game start
  • lesson 3 - animating the monster & moving the player
  • lesson 4 - firing bullets
  • lesson 5(a) - monster life & game levels
  • lesson 5(b) - game levels continued
  • lesson 6 - monster bullets
  • lesson 7 - monster bombs
  • lesson 8 - player winning

Section 5: Build Flappy bird Game

  • Download Project file
  • lesson 1 - project intro
  • lesson 2 - programming the ground movement
  • lesson 3 - making flappy fly
  • lesson 4 - finishing flappy's game logic
  • lesson 5 - programming the pipes and scoring

Section 6 : From Scratch to Python

  • Python Project 1
  • Python Project 2
  • Python Project 3
  • Python Project 4

Section 7: Introduction to Python

  • lesson 1 - introduction to python
  • lesson 2 - print function
  • lesson 3 - print function continued
  • Exercise - Print functionality
  • lesson 4 - debugging print function
  • Exercise - Print debugging
  • lesson 5 - data types (int, float, str)
  • lesson 6 - type function
  • Exercise - Data types & Type function
  • lesson 7 - Boolean values & Comparisons
  • lesson 8 - more comparisons
  • Exercise - Booleans & Comparisons
  • lesson 9 - Variables
  • lesson 10 - Variables continued
  • Exercise - Variables
  • Exercise - More variables
  • Solutions
  • lesson 11 - is/is not
  • Exercise - is/is not
  • lesson 12 - mathematical operators
  • Exercise - mathematical operators
  • lesson 13 - mathematical shorthand
  • Exercise - mathematical shorthand
  • lesson 14 - mathematical precedence
  • Exercise - mathematical precedence
  • lesson 15 - mathematical rounding
  • Exercise - mathematical rounding
  • Exercise - more mathematics
  • Solutions
  • lesson 16 - string operations
  • Exercise - string operations
  • Exercise - more string operations
  • lesson 17 - input function
  • Exercise - input function
  • Solutions
  • lesson 18 - escape character
  • Exercise - escape character
  • Project - calculator
  • Exercise - calculation projects
  • Solutions
  • lesson 19 - string methods
  • lesson 20 - more string methods
  • Exercise - string methods
  • lesson 21 - len function
  • Exercise - len
  • Project - len
  • Solutions
  • lesson 22 - F strings
  • Exercise - F strings
  • Project - F strings
  • Solutions
  • lesson 23 - comments
  • Exercise - comments
  • Project - conversions
  • Project - age calculator
  • Project - salaries
  • Project - username
  • Project - final
  • Solutions

Section 8: Python Conditionals

  • lesson 1 - if conditionals
  • lesson 2 - if conditionals part 2
  • lesson 3 - if conditionals part 3
  • Exercise - if conditionals
  • lesson 4 - Parity
  • Project - Parity
  • Solutions
  • lesson 5 - expressions vs statements
  • Summary - expressions vs statements
  • Exercise - expressions vs statements
  • Project - expressions vs statements
  • Solutions
  • lesson 6 - secret number
  • Exercise - secret num
  • Project - secret num
  • Solutions
  • lesson 7 - secret name
  • Exercise - secret name
  • Project - secret name
  • Solutions
  • lesson 8 - grades
  • Project - conditionals 1
  • Solutions
  • Project - conditionals 2
  • Solutions
  • Project - conditionals 3
  • Solutions

Section 9: Python Lists & Strings

  • lesson 1 - intro to Lists
  • Exercise - intro to Lists
  • Project - intro to Lists
  • Solutions
  • lesson 2 - lists indexing
  • Exercise - lists indexing 1
  • Exercise - lists indexing 2
  • Exercise - lists indexing 3
  • Exercise - lists indexing 4
  • Exercise - lists indexing 5
  • Project - lists indexing
  • Solutions
  • lesson 3 - list slicing
  • Exercise - list slicing 1
  • Exercise - list slicing 2
  • lesson 4 - list manipulation
  • Exercise - lists manipulation 1
  • Exercise - lists manipulation 2
  • Exercise - lists manipulation 3
  • Exercise - lists manipulation 4
  • lesson 5 part 1 - string indexing
  • lesson 5 part 2 - string indexing
  • Exercise - string indexing
  • Project - string indexing
  • Solutions
  • lesson 6 - strings & lists part 1
  • Project - strings & lists part 1
  • Solutions
  • lesson 7 - strings & lists part 2
  • Project - strings & lists part 2
  • Solutions
  • lesson 8 - list functions
  • Project - list functions
  • Solutions
  • lesson 9 - list & string methods part 1
  • Project - list & string methods part 1
  • Solutions
  • lesson 10 - list & string methods part 2
  • lesson 11 - list & string methods part 3
  • lesson 12 - list & string methods part 4
  • Exercise - list & string methods part 4
  • Project - list & string methods part 4
  • Solutions
  • lesson 13 - list & string methods part 5
  • Project - list & string methods part 5
  • Solutions
  • lesson 14 - truthy & falsy
  • Exercise - truthy & falsy
  • lesson 15 - Match vs If
  • Project - Match vs If
  • Solutions
  • lesson 16 - Secret number Game
  • Project - Secret number Game
  • Solutions
  • lesson 17 - Reversed word Game
  • Project - Reversed word Game
  • Solutions

Section 10: Python Loops & more Data Types

  • Lesson 1 - introduction to While Loops
  • Project - introduction to While Loops
  • Solutions
  • lesson 2 part 1 - While Loops (summation)
  • lesson 2 part 2 - While Loops (summation)
  • Project - While Loops (summation)
  • Solutions
  • lesson 3 - While Loops (Strong Password Project)
  • Project - While Loops (Strong Password Project)
  • Solutions
  • Lesson 4 - While Loops (Cashier Project)
  • Project - While Loops (Cashier Project)
  • Solutions
  • Lesson 5 - Introduction to For Loops
  • Project - Introduction to For Loops
  • Solutions
  • Lesson 6 - Range function
  • Project - Range function
  • Solutions
  • lesson 7- Range function part 2
  • Project - Range function part 2
  • Solutions
  • Lesson 8 - Nested Loops
  • Project - Nested Loops
  • Solutions
  • Lesson 9 - introduction to Tuples
  • Lesson 10 - Tuples & zip function
  • Project - Tuples
  • Solutions
  • Lesson 11 - Enumerate function
  • Lesson 12 - Enumerate function continued
  • Project - Enumerate function
  • Solutions
  • Lesson 13 - Sets
  • Project - sets
  • Solutions
  • Lesson 14 - Unpacking operator
  • Project - Unpacking operator
  • Solutions
  • Lesson 15 - List Comprehension
  • Project - List Comprehension
  • Solutions

Section 11: Python Dictionaries

  • Lesson 1 - Introduction to Dictionaries
  • Project - Introduction to Dictionaries
  • Solutions
  • Lesson 2 - More Dictionaries
  • Project - More Dictionaries
  • Solutions
  • Lesson 3 - Even More Dictionaries
  • Project - Even More Dictionaries
  • Solutions
  • Lesson 4 - Dictionaries forever
  • Project - Dictionaries Forever
  • Solutions
  • Lesson 5 - Mastering Dictionaries
  • Project - Mastering Dictionaries
  • Solutions
  • Lesson 6 - Dictionary Getters & Setters
  • Project - Dictionary Getters & Setters
  • Solutions
  • Lesson 7 - Dictionary Chaining Methods
  • Project - Dictionary Chaining Methods
  • Solutions
  • Lesson 8 - Counting with Dictionaries
  • Project - Counting with Dictionaries
  • Solutions
  • Lesson 9 - Dictionaries & Python Tutor
  • Project - Dictionaries & Python Tutor
  • Solutions
  • Lesson 10 - Online store Project | part 1
  • Lesson 11 - Online store Project | part 2
  • Lesson 12 - Online store Project | part 3
  • Lesson 13 - Online store Project | part 4
  • Lesson 14 - Online store Project | part 5
  • Project - Online store

Section 12: Python Functions

  • Lesson 1 - Introduction to Functions | part 1
  • Lesson 2 - Introduction to Functions | part 2
  • مشاريع - Introduction to Functions
  • Lesson 3 - Function Multiple Arguments
  • مشاريع - Function Multiple Arguments
  • Lesson 4 - Return & Scopes
  • مشاريع - Return & Scopes
  • Lesson 5 - Function *args
  • مشاريع - Function *args
  • Lesson 6 - Function Kwargs
  • مشاريع - Function Kwargs
  • Lesson 7 - Pythonic Functions & Ternary operator
  • مشاريع - Pythonic Functions & Ternary operator
  • Lesson 8 - Task Manager Part 1
  • Lesson 9 - Task Manager Part 2
  • Lesson 10 - Task Manager Part 3
  • Lesson 11 - Task Manager Part 4
  • مشاريع - Task Manager Part 4
  • Lesson 12 - Task Manager Part 5
  • Lesson 13 - Task Manager Part 6
  • Lesson 14 - Task Manager Part 7
  • مشاريع - Task Manager Part 7
  • مشاريع - Online Store with Functions

Section 13: Python Files & Regex

  • Lesson 1 - Introduction to Files
  • Lesson 2 - Writing to Files
  • Lesson 3 - Absolute vs Relative Path
  • Lesson 4 - Smart Slicing
  • مشاريع - Files
  • Lesson 5 - Introduction to Regex
  • Lesson 6 - More Regex
  • Lesson 7 - Regex in Python
  • تمارين - Regex in Python
  • Lesson 8 - Files and CSV module
  • Lesson 9 - Files and CSV module | sorted function
  • Lesson 10 - Files and CSV module | Lambda Function
  • Lesson 11 - Files and CSV module | Help Function
  • مشاريع - Files and CSV module

Section 14: Object Oriented Programming, Analysis and Design

  • Lesson 1 - Object and Class
  • Lesson 2 - Classes and Methods
  • Lesson 3 - Object Attributes
  • Lesson 4 - str Dunder method
  • Project
  • lesson 5 - Class Attributes
  • lesson 6 - More Class Attributes & __repr__
  • Project
  • Lesson 7 - Encapsulation
  • Lesson 8 - Class Methods
  • Lesson 9 - Static Methods
  • Lesson 10 - Property, Setter and Private methods
  • Lesson 11 - More Dunder methods
  • Lesson 12 - Separation of concerns
  • Lesson 12 Part 2 - Flags
  • Lesson 13 - Inheritance & Polymorphism
  • Lesson 14 - Abstract Classes, Interfaces & more Polymorphism
  • Lesson 15 - Data Class
  • Lesson 16 - Software engineering and object oriented design
  • Lesson 17 - Introduction to Class diagrams
  • Lesson 18 - Class diagram Relationships
  • Lesson 19 - Banking system project
  • Lesson 20 - Building a Tic Tac Toe Game | Analysis & Design
  • Lesson 21 - Building a Tic Tac Toe Game | Player & Menu classes
  • Lesson 22 - Building a Tic Tac Toe Game | Board class
  • Lesson 23 - Building a Tic Tac Toe Game | Game class
  • Lesson 24 - Building a Tic Tac Toe Game | Game class part 2
  • Lesson 25 - Building an ATM system | part 1
  • Lesson 26 - Building an ATM system | part 2
  • Lesson 27 - Building an ATM system | part 3
  • Lesson 28 - Building an ATM system | part 4
  • Lesson 29 - Building an ATM system | part 5
  • esson 30 - Building an ATM system | part 6
  • Lesson 31 - Refactoring the ATM system | part 1
  • Lesson 32 - Refactoring the ATM system | part 2
  • Lesson 33 - Refactoring the ATM system | part 3
  • Lesson 34 - Refactoring the ATM system | part 4
  • Lesson 35 - Extending the ATM system | part 1
  • Lesson 36 - Extending the ATM system | part 2

Bonus section: Testing in Python with Pytest

  • Introduction to Testing
  • Installing Pytest & more
  • Unit testing & test cases
  • More Assertions
  • Testing Classes
  • Fixtures

Bonus section: Problem Solving with Python

  • Introduction to problem solving
  • Problem set 1
  • Problem set 2
  • Problem set 3
  • Problem set 4
  • Problem set 5
  • Problem set 6
  • Problem set 7
  • Problem set 8
  • Problem set 9
  • Problem set 10
  • Problem set 11
  • Problem set 12
  • Problem set 13
  • Problem set 14
  • Problem set 15
  • Problem set 16
  • Problem set 17
  • Problem set 18
  • Problem set 19
  • Problem set 20
  • Problem set 21
  • Problem set 22
  • Problem set 23
  • Problem set 24
  • Problem set 25
  • Problem set 26
  • Problem set 27

Section 15: Python Mobile & Game Development Projects

  • Pygame Project - Part 1
  • Pygame Project - Part 2
  • Pygame Project - Part 3
  • Exercise
  • Refactoring the Pygame Project - Part 1
  • Refactoring the Pygame Project - Part 2
  • Refactoring the Pygame Project - Part 3
  • Exercise
  • Refactoring the Pygame Project - Part 4
  • Adding features to the Pygame Project
  • Introduction to Kivy
  • Kivy Widgets & BoxLayout
  • Kivy GridLayout & Event Handlers
  • Kivy Project - part 1
  • Kivy Project - part 2
  • Kivy Project - part 3
  • Kivy Project - part 4

Section 16: HTML & CSS

  • How the Web Works - overview of the internet and the web
  • Client-server model
  • Introduction to Recipe Page project
  • Recipe Page project - Inline vs Block HTML elements
  • Recipe Page project - HTML Document structure
  • Recipe Page project - Semantic HTML elements
  • Recipe Page project - Images & Hyperlinks
  • ٍRecipe Page project - External vs Internal vs Inline CSS
  • Recipe Page project - CSS styling & Box Model
  • Recipe Page project - CSS reset & more styling
  • Recipe Page project - Responsiveness & styling IMG
  • Recipe Page project - Divs, Footer & Classes
  • Introduction to Event Page Project
  • Event Page project - Wireframing, Header, Nav & Flex
  • Event Page project - Nav styling & REM
  • Event Page project - Hero section structure
  • Event Page project - Hero section styling
  • Event Page project - About section structure
  • Event Page project - About section styling
  • Event Page project - Schedule section Table structure
  • Event Page project - Schedule section Table styling
  • Event Page project - Form structure
  • Event Page project - Form styling
  • Event Page project - Media Queries for Mobile & Tablet
  • Event Page project - Footer structure
  • Event Page project - Footer styling
  • Personal Portfolio Website - Header section
  • Personal Portfolio Website - Hero section
  • Personal Portfolio Website - About section
  • Personal Portfolio Website - Projects section
  • Personal Portfolio Website - Skills section
  • Personal Portfolio Website - Contact form & Footer
  • How to make Money building with AI