Posts

Showing posts from January, 2021

Assignment 2

 1-D 2-A 3-A 4-A 5-C //no starts from 0 and ends till 19 with the difference of 2 6-D  //100%90=10 as remainder is 10 7-A //i increases from 1 to 6 and i is getting multiplied to the value of a 8-C //as i increases from i to 6 so we get output of the next 6 nos 9-A //no starts from 7 and decreases till 1 10-D

Week 2 Programming Assignment 3

 x,y = input().split(" ") //taking inputs from the user and split is used to seperate the two nos x = int(x) //converting x into an integer type y = int(y) //converting y into an integer type if(x<y): //checking the condition which nos is greater among the two nos   print(y) //if y is greater than y then print y else:   print(x) //if y is not greater than x then print x Input           Output 12,64             64 10,11             11

Week 2 Programming Assignment 2

 x,y = input().split(" ")  //taking inputs from the user and split is used to seperate the two nos x = int(x)  //converting x to integer type y = int(y)  //converting y to integer type print(x*y) //printing product of x and y by using * operator Input      Output 3*4           12   5*3           15

Week 2 Programming Assignment 1

 a = int (input())   //taking input from the user and , int is converting the number into integer type print( a )  //printing the value inputted from the user Working of the above problem Input      Output 10             10 12              12 67              67 100            100

WEEK 1 Solutions

 1-A 2-B 3-D 4-B 5-A 6-C 7-D 8-B 9-C 10-A

WEEK 0 Solutions

1-B 2-C 3-A 4-B 5-C 6-A 7-B 8-D 9-C 10-D

Python NPTEL Online Course

  Myself Siddharth Pal, pursuing my B.Tech in ECE  department. I have been inactive for a long time but now i,ll be uploading the solutions of the python assignment. In future also i,ll be uploading other such stuffs.