Programming Assignment-2: Addition: (Https://swayam - Gov.in)
Programming Assignment-2: Addition: (Https://swayam - Gov.in)
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
Announcements (announcements)
Understanding
Variables in
https://onlinecourses.nptel.ac.in/noc20_cs35/progassignment?name=269 1/4
02/07/2020 The Joy of Computing using Python - Course
Python (unit?
unit=20&lesson=25) Test Case 3 4 4 8
Executing a
Test Case 4 1 2 3
sequence of
instructions in
the Console Test Case 5 6 2 8
(unit?
unit=20&lesson=26)
Test Case 6 10 10 20
Writing your
First Program Test Case 7 12 13 25
(unit?
unit=20&lesson=27)
Test Case 8 3 5 8
Taking inputs
from the user
(unit? The due date for submitting this assignment has passed.
unit=20&lesson=28) As per our records you have not submitted this assignment.
Sample solutions (Provided by instructor)
Discount
Calculation
1 x,y = input().split(" ")
2 x = int(x)
(unit? 3 y = int(y)
unit=20&lesson=29) 4
5 print(x+y)
Motivation to if
condition (unit?
unit=20&lesson=30)
A reminder on
how to deal
with numbers
(unit?
unit=20&lesson=31)
Understanding
if condition's
working (unit?
unit=20&lesson=32)
Realizing the
importance of
syntax and
indentation
(unit?
unit=20&lesson=33)
Introductions to
loops (unit?
unit=20&lesson=34)
Loops: Sum of
numbers (unit?
unit=20&lesson=35)
Loops: Sum of
numbers
(continued)
(unit?
unit=20&lesson=36)
Loops:
Multiplication
https://onlinecourses.nptel.ac.in/noc20_cs35/progassignment?name=269 2/4
02/07/2020 The Joy of Computing using Python - Course
Tables (unit?
unit=20&lesson=37)
Introduction to
While Loop
(unit?
unit=20&lesson=38)
Quiz :
Assignment 2
(assessment?
name=261)
Programming
Assignment-1:
Introduction to
Online Portal
(/noc20_cs35/progassignment?
name=268)
Programming
Assignment-
2: Addition
(/noc20_cs35/progassignment?
name=269)
Programming
Assignment-3:
Small
(/noc20_cs35/progassignment?
name=270)
Week 2
Feedback
(unit?
unit=20&lesson=271)
Week 3
week 4
Week 5
Week 6
Week 7
Week 8
Week 9
Week 10
Week 11
Week 12
Text Transcripts
https://onlinecourses.nptel.ac.in/noc20_cs35/progassignment?name=269 3/4
02/07/2020 The Joy of Computing using Python - Course
Download
Videos
Books
https://onlinecourses.nptel.ac.in/noc20_cs35/progassignment?name=269 4/4