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

Lesson 3: Introduction To Information Technology

This document introduces lessons on information technology. It discusses taking input from users using the input function, which prompts for keyboard input. The parameter in the input function indicates what information is being requested from the user. It also provides example programs - printing "Hello World", assigning and printing a variable, concatenating and printing multiple text variables, and a number comparison program that prints if a number is greater or less than 5.

Uploaded by

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

Lesson 3: Introduction To Information Technology

This document introduces lessons on information technology. It discusses taking input from users using the input function, which prompts for keyboard input. The parameter in the input function indicates what information is being requested from the user. It also provides example programs - printing "Hello World", assigning and printing a variable, concatenating and printing multiple text variables, and a number comparison program that prints if a number is greater or less than 5.

Uploaded by

Chathunika
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Lesson 3

Introduction to Information Technology


applicant = input(“Enter the applicant’s name”)

• One way to get data is directly from the user and


the input function can be used for this
The Input
function • The parameter inside the parentheses after input is
important. It is a prompt, prompting you that
keyboard input is expected at that point, and
hopefully indicating what is being requested
Lesson 3 Questions

1. Write a program that prints “Hello World”

2. Write a program to assign a variable ‘a’ to a number, add 25 to that variable and print that
variable.

3. Write a program with 3 variables storing text, and print out the 3 variables after being
concatenated.

4. Write a program that prints out if the number you have entered is greater than 5 or below 5.

If the number is greater than 5 the program should print, “Yes! The number is greater than
5”.

Else if the number is less than 5 the program should print, “Sorry, the number is less than 5”.

Challenge Accepted!

You might also like