PYTHON PROGRAMMING LAB (CSP-005)
Practical 1 – Basics
a) Running instructions in interactive interpreter and a Python script.
name = input("Enter your name: ")
print("Hello", name)
Output:
b) Write a program to purposefully raise an indentation error and correct it.
Error:
if True:
print("Error")
Output:
Correct:
if True:
print("Correct")
Output: