Python II
Python II
lesson -II
Lesson Outline:
• Recapitulation
• Use of input() function
• Demonstration to use input() function
• Python variable
• Assigning value to a variable
• Variable naming
• Rules for python variable naming
Python founder
THREE Code Editors other than IDLE
TWO IDLE windows
IDLE is an acronym for
Python file extension
function() which helps us to generate
the output
input() function:
Is used to invoke the information from
the end user
Example: Trying to invoke the end
user’s name
variable
Write a python
program to invoke
age of the end user
Learners’ Activity 01
Write a python program to ask about the favourite subject
then print the answer “My favourite subject is ………”
123_subjects=“English”
_123=“Dzongkha”
My-fav-subject=“Mathematics”
Fav_subject=“ICT”
if_else=“conditional statement”
My school=“Ugyen Academy”
Learners’ Activity 02
Write a python program to ask
information from the end user and
accept the information. Let the
computer say other people's answers
in the following format: