<h1>Table of Contents<span class="tocSkip"></span></h1>
<div class="toc"><ul class="toc-item"><li><span><a href="#Question" data-toc-modified-id="Question-1"><span class="toc-item-num">1&nbsp;&nbsp;</span>Question</a></span><ul class="toc-item"><li><span><a href="#Answer" data-toc-modified-id="Answer-1.1"><span class="toc-item-num">1.1&nbsp;&nbsp;</span>Answer</a></span></li></ul></li><li><span><a href="#Question" data-toc-modified-id="Question-2"><span class="toc-item-num">2&nbsp;&nbsp;</span>Question</a></span><ul class="toc-item"><li><span><a href="#Answer" data-toc-modified-id="Answer-2.1"><span class="toc-item-num">2.1&nbsp;&nbsp;</span>Answer</a></span></li></ul></li><li><span><a href="#Question" data-toc-modified-id="Question-3"><span class="toc-item-num">3&nbsp;&nbsp;</span>Question</a></span><ul class="toc-item"><li><span><a href="#Answer" data-toc-modified-id="Answer-3.1"><span class="toc-item-num">3.1&nbsp;&nbsp;</span>Answer</a></span></li></ul></li></ul></div>

# Question

**Question 1 :** 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.

**BreakDown Points:**
1) Get the Numbers between 2000 and 3200<br>
2) Find all Numbers divisible by 7<br>
3) From the result exclude Numbers divisible by 5<br>
4) Print in comma-separated sequence<br>

## Answer 


```python
for i in range(2000,3200+1):
    if i%7 == 0 and i%5 != 0:
        print(i, end=',')
```

    2002,2009,2016,2023,2037,2044,2051,2058,2072,2079,2086,2093,2107,2114,2121,2128,2142,2149,2156,2163,2177,2184,2191,2198,2212,2219,2226,2233,2247,2254,2261,2268,2282,2289,2296,2303,2317,2324,2331,2338,2352,2359,2366,2373,2387,2394,2401,2408,2422,2429,2436,2443,2457,2464,2471,2478,2492,2499,2506,2513,2527,2534,2541,2548,2562,2569,2576,2583,2597,2604,2611,2618,2632,2639,2646,2653,2667,2674,2681,2688,2702,2709,2716,2723,2737,2744,2751,2758,2772,2779,2786,2793,2807,2814,2821,2828,2842,2849,2856,2863,2877,2884,2891,2898,2912,2919,2926,2933,2947,2954,2961,2968,2982,2989,2996,3003,3017,3024,3031,3038,3052,3059,3066,3073,3087,3094,3101,3108,3122,3129,3136,3143,3157,3164,3171,3178,3192,3199,

# Question

**Question 2 :** 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.

**BreakDown Points:**
1) Read First Name<br>
2) Read Last Name<br>
3) Print in reverse order<br>

## Answer


```python
FullName = input('Please Enter First & Last Name : ').split()

for i in FullName[::-1]:
    print(i, end=' ')
```

    Please Enter First & Last Name : V P
    P V 

# Question

**Question 3 :** Write a Python program to find the volume of a sphere with diameter 12 cm

\begin{align}
Formula : V = \frac{4}{3} * {\pi} * (\frac{d}{2})^3\\
\end{align}

**BreakDown Points:**
1) Replce r with d/2<br>
2) Value of pi is availble in math module<br>

## Answer


```python
import math
volume = (4/3) * math.pi  * (12/2)**3
print(volume)
```

    904.7786842338603



```python
volume = (4/3) * 3.141  * (12/2)**3
print(volume)
```

    904.608


f47ace4704c614e5a830e3d8bda0bc1f39b99039
ipynb
Jupyter Notebook
Assignments/Basic-Python-Assignment-1.ipynb
vigneshpalanivelr/MeachineLearningAI
16741f08b8846fd27c319aff24d7e043acb843f3
MIT
Assignments/Basic-Python-Assignment-1.ipynb
vigneshpalanivelr/MeachineLearningAI
16741f08b8846fd27c319aff24d7e043acb843f3
MIT
Assignments/Basic-Python-Assignment-1.ipynb
vigneshpalanivelr/MeachineLearningAI
16741f08b8846fd27c319aff24d7e043acb843f3
MIT
Qwen/Qwen-72B
1. YES
2. YES