Pyhton Assignment 1: Submitted By: Navneet Singh Roll No: 1902159 Class: X2
Pyhton Assignment 1: Submitted By: Navneet Singh Roll No: 1902159 Class: X2
Roll No : 1902159
Class : X2
Pyhton Assignment 1
Experiment-1
Aim: Explain the steps of Installation of Python and Solve the following Code Challenges.
Step 2: click the Windows link (two lines below the Download Python 3.8 button)
Installing 1. Double-click the icon labeling the file python-3.8-amd 34.exe. A Python 3.8(3 4-bit)
Setup pop-up window will appear.
2. install launcher for all users (recommended) and the Add Python 3.8 to PATH checkboxes at the
bottom are checked.
3.Highlight the Install Now (or Upgrade Now) message, and then click it. When run, a User Account
Control pop-up window may appear on your screen. I could not capture its image, but it asks, Do you
want to allow this app to make changes to your device.
4.Click the Yes button. A new Python 3.8 (34-bit) Setup pop-up window will appear with a Setup
Progress message and a progress bar.
CODE CHALLENGE 1
1. Write suitable arithmetic expressions for the displayed descriptions
Ans: 1056+637
Ques 3 : 36 mod 5
Ans: 36% 5
Ans: ( 8 + 9) *4
Ans: ( 2*11) + 1
Ques 9. An expression that will result in 0, which does not include multiplication and contains at
least 3 arithmetic operators
Ans: ( 9 - 9 )/ (4+7)
Ques 10 : An expression that includes all six arithmetic operators, addition (+), subtraction (-),
multiplication (*), division (/), modulo (%) and power (**)
CODE CHALLENGE 2
1. In the given code, add the text that will display the text, Hello World!
Ans: print(“ Hello World! ”)
1. 2. Conduct this experiment. Run the following program to see what happens. Note your
observations so that you can revisit them when you learn about data types.
Ans :