0% found this document useful (0 votes)
67 views

Assignment 1

This document provides an assignment with multiple tasks. It asks the student to: 1) Install Jupyter notebook and run a program to find numbers between 2000-3200 divisible by 7 but not 5 and print the output. 2) Write programs to reverse a name, find the volume of a sphere, generate a list from comma separated numbers, and create a pattern using nested loops. 3) Write a program to reverse a word and format a string in a specified output format with screenshots of the code and output to be submitted on Github.

Uploaded by

Kundan Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

Assignment 1

This document provides an assignment with multiple tasks. It asks the student to: 1) Install Jupyter notebook and run a program to find numbers between 2000-3200 divisible by 7 but not 5 and print the output. 2) Write programs to reverse a name, find the volume of a sphere, generate a list from comma separated numbers, and create a pattern using nested loops. 3) Write a program to reverse a word and format a string in a specified output format with screenshots of the code and output to be submitted on Github.

Uploaded by

Kundan Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Session 1

Assignment 1 Question
Session 1: Assignment 1

Table of Contents

1.​ ​Introduction

2.​ ​Problem Statement

3.​ ​Output
1.​ ​Introduction

This assignment will help you to consolidate the concepts learnt in the session.

2.​ ​Problem Statement

Task 1:

1.

Install Jupyter notebook and run the first program and share the screenshot of the output.

LINK

2.

Write a program which will find all such numbers which are divisible by 7 but are not a multiple
of 5, between 2000 and 3200 (both included). The numbers obtained should be printed in a
comma-separated sequence on a single line.

3.

Write a Python program to accept the user's first and last name and then getting them printed in
the the reverse order with a space between first name and last name.

4.

Write a Python program to find the volume of a sphere with diameter 12 cm.

3
Formula: V=4/3 * π * r
Task 2:

1.

Write a program which accepts a sequence of comma-separated numbers from console and
generate a list.

2.

Create the below pattern using nested for loop in Python.

*
**
***
****
*****
****
***
**
*

3.

Write a Python program to reverse a word after accepting the input from the user.

Sample Output:

Input word: AcadGild

Output: dilGdacA
4.

Write a Python Program to print the given string in the format specified in the ​sample output.

WE, THE PEOPLE OF INDIA, having solemnly resolved to constitute India into a
SOVEREIGN, SOCIALIST, SECULAR, DEMOCRATIC REPUBLIC and to secure to all
its citizens

Sample Output:

WE, THE PEOPLE OF INDIA,


having solemnly resolved to constitute India into a SOVEREIGN, !
SOCIALIST, SECULAR, DEMOCRATIC REPUBLIC
and to secure to all its citizens

NOTE:​ ​The​ ​solution​ ​shared​ ​through​ ​Github​ ​should​ ​contain​ ​the​ ​source code​ ​used​ ​ and​
​the​ ​screenshot​ ​of​ ​the​ ​output.

3.​ ​Output

N/A

You might also like