0% found this document useful (0 votes)
9 views

Using Input in Python Year 8 WK 9

Uploaded by

chimezie.aneke
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Using Input in Python Year 8 WK 9

Uploaded by

chimezie.aneke
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Python

Topic : Python Programming


Oct 2024

Starter
Open pycharm on your computer and check to see if it loads well

Concatenate
Learning Objectives Key Words
By the end of this class • Int
• I should be able to identify different input methods • Float
in python • Str
• I should be able to explain the function of int and • Print
str in coding
• Input
• I should be able to use the print function to display
answers • Concatenat
e
• ==
Topic : Python Programming
Oct 2024

Guide
https://www.programiz.com/python-progr
amming/input-output-import

Use this link to understand print and


input better
Topic : Python Programming
Oct 2024

Activity
• Create this code in pycharm run it and see the outcome
Topic : Python Programming
Oct 2024

Activity
• Create this code in Pycharm run it and see the outcome
Topic : Python Programming
Oct 2024

Activity
• Create this code in Pycharm run it and see the outcome
Topic : Python Programming
Oct 2024

Activity
• Write down this in your note book
Input and Print Function
In Python, we use the input() function to ask the user for
input. As a parameter, we input the text we want to
display to the user. Once the user presses “enter,” the
input value is returned. We typically store user input in a
variable so that we can use the information in our
program.
Topic : Python Programming
Oct 2024

Quick Review quiz


• Your Turn!
• Now that you know the basics of user input, try it out by completing the following
exercises. In each program, you should use variables to store the information
gathered from the user.
1.Ask the user for their age. Then print out how old they will be in 10 years.
2.Ask the user for their name. Then print out three greeting statements in three
different languages.
3.Ask the user for two numbers. Then calculate and print out the sum.

Plenary
Topic : Python Programming
Oct 2024

Guide
Follow the steps in the video
https://www.youtube.com/watch?v=DB9C
q6TSTuQ

You might also like