You are on page 1of 5

Foundations of AI Applications Lab

Prepared By: Divneet Singh Kapoor & Kiran Jot Singh

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

Code: ,----. ,-. ,----.,------. ,-. ,-.,-. ,-.


/ ,-,_/ ,' | / /"P /`-, ,-',' | / // |/ /
/ / __ ,' ,| | / ,---' / / ,' ,| | / // J P /
/ '-' /,' ,--. |/ / / /,' ,--. |/ // /| /
`----''--' `-'`'.--""""--.--' `-'`' `' `-'
nnnnnnnnnnnnnnnn,'.n*""""*N.`.#######################
NNNNNNNNNNNNNNN/ J',n*""*n.`L \##### ### ### ### ####
: J J___/\___L L :#####################
nnnnnnnnnnnnnn{ [{ `. ,' }] }## ### ### ### ### ##
NNNNNNNNNNNNNN: T T /,'`.\ T J :#####################
\ L,`*n,,n*',J /
nnnnnnnnnnnnnnnn`. *n,,,,n* ,'nnnnnnnnnnnnnnnnnnnnnnn
NNNNNNNNNNNNNNNNNN`-..__..-'NNNNNNNNNNNNNNNNNNNNNNNNN
,-. ,-. ,-. ,----. ,----.,-. ,----. ,-.
| `. \ `.| \\ .--`\ \"L \\ \\ .-._\ | `. o!0
| |. `. \ \ ` L \\ __\ \ . < \ \\ \ __ | |. `.
| .--. `.\ \`-'\ \\ `---.\ \L `.\ \\ `-` \| .--. `.
`-' `--``' `-'`----' `-'`-' `' `----'`-' `--'
Foundations of AI Applications Lab

Prepared By: Divneet Singh Kapoor & Kiran Jot Singh

Outcome:
Foundations of AI Applications Lab

Prepared By: Divneet Singh Kapoor & Kiran Jot Singh

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

Prepared By: Divneet Singh Kapoor & Kiran Jot Singh

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

Prepared By: Divneet Singh Kapoor & Kiran Jot Singh

Outcome:

You might also like