Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Assignment Sheet

EVEN Semester 2022


B.Tech CSE/IT 6th Semester
Course Artificial Intelligence Lab
Course Code 15B17CI574
----------------------------------------------------------
NOTE:
 Submit the source code with output of this assignment in a Pdf format to the assignment created on Google Classroom.
 Title of submission should be as Enroll No_Week No.
---------------------------------------------------------------------------------------------------------------------
Week-1
February 07-13, 2022
Practice

Please refer the folder “Python Help”


Identify the meaning and purpose of Python Commands

Login to Python by following the steps given in Python Help- “Login to Python”
EXERCISES:

Q1. Understand the login process to Python Shell from Python Help- “Login to Python”. How to create and
save python files. (Hint: “My_First_Example.py”)
Q2. Execute some simple types and functions from Python Help -- “Types and Functions”
Q3. Perform various arithmetic operations and examples from Python Help – “Integer Arithmetic”
Q4. Execute commands related to strings from Python Help- “String Delimiters”. Also, Figure out a compact
way to get Python to make the string, YesYesYesYesYes, and try it. How about
MaybeMaybeMaybeYesYesYesYesYes? (Hint: use * and +)
Q5. Perform operations on variables and their assignment from Python Help- “Variables and Assignment”.
Q6. Understand what literals are and what identifiers are from the Python Help- “Literals and Identifiers”
Q7. Execute the working of print function from Python Help- “Use Print Function”
Q8. Perform triple quotes in strings from Python Help- “Triple Quoted String Literals”
Q9. Execute the working of input and output functions from Python Help- “Input and Output”
Q10. Perform arithmetic computations from Python Help- “Numbers and Strings of Digits”
Q11. Execute additional string exercises from Python Help- “Further on Strings”
Q12. How to write and execute your own functions, see Python Help- “Define Functions of your Own”
Q13. What are dictionaries and their significance in python from Python Help- “Dictionaries”?
Q14. How can decimal values be treated from Python Help- “Decimals”?
Q15. Evaluate Boolean expressions from Python Help- “Compound Boolean Expressions”
Q16. Perform execution of If Statements from Python Help- “If Statements”
Q17. Understand the working and importance of looping in python from Python Help- “Loops”
Q18. Solve Questions from Python Help- “Questions”

You might also like