PROBLEM SOLVING USING PYTHON Unit 1 MADRAS UNIVERSITY SYLLABUS
PROBLEM SOLVING USING PYTHON Unit 1 MADRAS UNIVERSITY SYLLABUS
PROBLEM SOLVING USING PYTHON Unit 1 MADRAS UNIVERSITY SYLLABUS
R.Dharmeshwari
Asst. Prof. Dept. of BCA
ANNAI THERASA ARTS AND SCIENCE COLLEGE,
THIRUKAZHUKUNDRAM, MANGALAM.
ADA LOVELACE
Problem Solving Using Python Unit 1
Definition
• Computer software is a set of program
instructions, including related data and
documentation, that can be executed by
computer.
• Types
– System Software
– Application software
About Python
• Guido van Rossum is the creator of
the Python programming language
• first released in the early 1990s
• Its name comes from a 1970s
British comedy sketch television
show called Monty Python’s Flying
Circus .
• Keyword :
– A keyword is an identifier that has predefined
meaning in a programming language and
therefore cannot be used as a “regular” identifier.
This will result in a syntax error.
– Eg : >>> in=10
– SyntaxError: invalid syntax
if x==1:
f=float(input("Enter the temperature in fahernheit"))
result=round((f-32)*(5/9),3)
print(str(result)+"C")
elif x==0:
c=float(input("Enter the temperature in celcius"))
result=round(c*(9/5)+32,3)
print(str(result)+"F")
else:
print("Invalid Input")