Professional Documents
Culture Documents
AI Worksheet Exp 1
AI Worksheet Exp 1
HOME TASK
EXPERIMENT – 1
Task-1:
WAP to print any ASCII Art from the website
http://www.chris.com/ascii/
Requirements:
Python 3.7 version
Outcome:
Foundations of AI Applications Lab
Task-2:
WAP to print (in the middle of the screen) your Name, UID and Section as listed below using
only one print statement.
FirstName “LastName”
UID
Section
Requirements:
Python 3.7 version
Code:
print("\t\t\tName:Sudhanshu Singhal\n\n\t\t\tUID:20BCS7007\n\n\t\t\tSection:CSE9(B)")
Outcome:
Foundations of AI Applications Lab
Task-3:
Write a Personal Greeter Program
The Personal Greeter program adds a single, but very cool, element to the Greeter program:
user input. Instead of working with a predefined value, the computer lets the user enter his or
her name and then uses it to say hi.
Requirements:
Python 3.7 version
Code:
print("Hi,What is your name??")
d= input("\nEnter your name:")
print(d)
print("\nHi,",d)
print("\n\nPress enter to continue.")
Outcome:
Foundations of AI Applications Lab
Outcome: