<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pradeep Pep</title>
    <description>The latest articles on DEV Community by Pradeep Pep (@pradeepmtm).</description>
    <link>https://dev.to/pradeepmtm</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1742879%2Fe961b175-4eb2-4296-87d8-e7305d71eacd.png</url>
      <title>DEV Community: Pradeep Pep</title>
      <link>https://dev.to/pradeepmtm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pradeepmtm"/>
    <language>en</language>
    <item>
      <title>Task 9: Git command executions</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Thu, 29 May 2025 14:16:31 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-9-git-command-executions-5hh6</link>
      <guid>https://dev.to/pradeepmtm/task-9-git-command-executions-5hh6</guid>
      <description></description>
      <category>git</category>
      <category>cli</category>
      <category>softwaredevelopment</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Task 8: Number Guessing Game</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Thu, 22 May 2025 04:43:17 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-8-number-guessing-game-5311</link>
      <guid>https://dev.to/pradeepmtm/task-8-number-guessing-game-5311</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/pradeep-pep/python_works" rel="noopener noreferrer"&gt;https://github.com/pradeep-pep/python_works&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://parottasalna.com/2024/08/11/build-a-game-where-the-user-guesses-a-randomly-generated-number-2/" rel="noopener noreferrer"&gt;https://parottasalna.com/2024/08/11/build-a-game-where-the-user-guesses-a-randomly-generated-number-2/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>github</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>GIT configure in VSCode</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Fri, 16 May 2025 15:23:37 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/git-configure-in-vscode-1o7o</link>
      <guid>https://dev.to/pradeepmtm/git-configure-in-vscode-1o7o</guid>
      <description>&lt;p&gt;Create a Github account:&lt;br&gt;
&lt;a href="https://github.com/pradeep-xxx" rel="noopener noreferrer"&gt;https://github.com/pradeep-xxx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create a repository and choose the generated link:&lt;br&gt;
&lt;a href="https://github.com/pradeep-xxx/python_workouts.git" rel="noopener noreferrer"&gt;https://github.com/pradeep-xxx/python_workouts.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use in VS code Terminal:&lt;br&gt;
PS C:\Users\para\Documents\PYTHON&amp;gt; git init&lt;br&gt;
PS C:\Users\para\Documents\PYTHON&amp;gt; git config --global user.name "Pradeep xxx"&lt;br&gt;
PS C:\Users\para\Documents\PYTHON&amp;gt; git config --global user.email "&lt;a href="mailto:pradeep.xxxx@gmail.com"&gt;pradeep.xxxx@gmail.com&lt;/a&gt;"  &lt;/p&gt;

&lt;p&gt;PS C:\Users\para\Documents\PYTHON&amp;gt; git remote add origin &lt;a href="https://github.com/pradeep-xxx/python_works.git" rel="noopener noreferrer"&gt;https://github.com/pradeep-xxx/python_works.git&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;PS C:\Users\para\Documents\PYTHON&amp;gt; git add .                        [OR]&lt;br&gt;
                                      git add ToDoList.py ToDoList2.py todotask.txt todotask2.txt&lt;/p&gt;

&lt;p&gt;PS C:\Users\para\Documents\PYTHON&amp;gt; git commit -m "Initial Commit"               [OR]&lt;br&gt;
PS C:\Users\para\Documents\PYTHON&amp;gt; git commit -m "Add selected Python and text files"   [OR]&lt;br&gt;
PS C:\Users\para\Documents\PYTHON&amp;gt; git commit -m "Add ToDoList.py, ToDoList2.py, todotask.txt, and todotask2.txt"&lt;/p&gt;

&lt;p&gt;PS C:\Users\para\Documents\PYTHON&amp;gt; git push --set-upstream origin master            [OR -1st time]&lt;br&gt;
PS C:\Users\para\Documents\PYTHON&amp;gt; git push&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Redis for Python - via Docker - No direct WSL</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Fri, 16 May 2025 15:19:42 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-8-redis-for-python-via-docker-no-direct-wsl-213p</link>
      <guid>https://dev.to/pradeepmtm/task-8-redis-for-python-via-docker-no-direct-wsl-213p</guid>
      <description>&lt;p&gt;Redis doesn’t officially support native Windows installations anymore. Instead of setting up WSL (Windows Subsystem for Linux), Docker is the easier and more modern way to run Redis on a Windows machine.&lt;/p&gt;

&lt;p&gt;Installing Docker Desktop gives you a full environment where you can run Redis (and many other tools) without friction.&lt;/p&gt;

&lt;p&gt;🔹 Step 1: Install Docker Desktop&lt;br&gt;
Download and install Docker Desktop from:&lt;br&gt;
&lt;a href="https://www.docker.com/products/docker-desktop/" rel="noopener noreferrer"&gt;https://www.docker.com/products/docker-desktop/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once installed:&lt;br&gt;
Make sure Docker is running (look for the whale icon in your system tray).&lt;br&gt;
Enable WSL2 integration if prompted during installation.&lt;/p&gt;

&lt;p&gt;🔹 Step 2: Pull and Run Redis&lt;br&gt;
Open PowerShell or Command Prompt and run:&lt;/p&gt;

&lt;p&gt;docker run --name my-redis -p 6379:6379 -d redis&lt;br&gt;
docker ps&lt;/p&gt;

&lt;p&gt;🔹 Step 3: Connect to Redis&lt;br&gt;
docker exec -it my-redis redis-cli&lt;br&gt;
set name "DockerRedis"&lt;br&gt;
get name&lt;br&gt;
ping&lt;/p&gt;

&lt;p&gt;Install RedisInsight and connect to:&lt;br&gt;
&lt;a href="https://redis.io/insight/" rel="noopener noreferrer"&gt;https://redis.io/insight/&lt;/a&gt;&lt;br&gt;
Host: localhost&lt;br&gt;
Port: 6379&lt;/p&gt;




&lt;p&gt;To find out whether your Windows PC uses an ARM64 or AMD64 (also called x64) architecture, follow these&lt;br&gt;
from Command Prompt you can run:&lt;/p&gt;

&lt;p&gt;C:\Users\pepsara&amp;gt;echo %PROCESSOR_ARCHITECTURE%&lt;/p&gt;

&lt;h2&gt;
  
  
  AMD64
&lt;/h2&gt;

&lt;p&gt;C:\Users\pepsara&amp;gt;docker version&lt;br&gt;
Client:&lt;br&gt;
 Version:           28.0.4&lt;br&gt;
 API version:       1.48&lt;br&gt;
 Go version:        go1.23.7&lt;br&gt;
 Git commit:        b8034c0&lt;br&gt;
 Built:             Tue Mar 25 15:07:48 2025&lt;br&gt;
 OS/Arch:           windows/amd64&lt;br&gt;
 Context:           desktop-linux&lt;/p&gt;

&lt;p&gt;Server: Docker Desktop 4.40.0 (187762)&lt;br&gt;
 Engine:&lt;br&gt;
  Version:          28.0.4&lt;br&gt;
  API version:      1.48 (minimum version 1.24)&lt;br&gt;
  Go version:       go1.23.7&lt;br&gt;
  Git commit:       6430e49&lt;br&gt;
  Built:            Tue Mar 25 15:07:22 2025&lt;br&gt;
  OS/Arch:          linux/amd64&lt;br&gt;
  Experimental:     false&lt;br&gt;
 containerd:&lt;br&gt;
  Version:          1.7.26&lt;br&gt;
  GitCommit:        753481ec61c7c8955a23d6ff7bc8e4daed455734&lt;br&gt;
 runc:&lt;br&gt;
  Version:          1.2.5&lt;br&gt;
  GitCommit:        v1.2.5-0-g59923ef&lt;br&gt;
 docker-init:&lt;br&gt;
  Version:          0.19.0&lt;br&gt;
  GitCommit:        de40ad0&lt;/p&gt;

&lt;h2&gt;
  
  
  C:\Users\pepsara&amp;gt;docker info
&lt;/h2&gt;

&lt;p&gt;✅ Step-by-Step: Use Redis with Python in VS Code&lt;br&gt;
🔧 1. Install Redis client for Python&lt;br&gt;
In your terminal (inside VS Code), run:&lt;br&gt;
pip install redis&lt;/p&gt;

&lt;p&gt;🧪 2. Test Redis Connection in Python&lt;br&gt;
Create a new Python file, e.g., redis_test.py, and add the following code:&lt;br&gt;
import redis&lt;/p&gt;

&lt;h1&gt;
  
  
  Connect to Redis
&lt;/h1&gt;

&lt;p&gt;r = redis.Redis(host='localhost', port=6379, db=0)&lt;/p&gt;

&lt;h1&gt;
  
  
  Set a key
&lt;/h1&gt;

&lt;p&gt;r.set('mykey', 'Hello Redis!')&lt;/p&gt;

&lt;h1&gt;
  
  
  Get the key
&lt;/h1&gt;

&lt;p&gt;value = r.get('mykey')&lt;br&gt;
print(value.decode('utf-8'))  # Output: Hello Redis!&lt;/p&gt;

&lt;p&gt;Then run it: python redis_test.py&lt;br&gt;
You should see: Hello Redis!&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Task 7: ToDoList Creation</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Wed, 14 May 2025 15:18:15 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-7-todolist-creation-4deh</link>
      <guid>https://dev.to/pradeepmtm/task-7-todolist-creation-4deh</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/pradeep-pep/python_works" rel="noopener noreferrer"&gt;https://github.com/pradeep-pep/python_works&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://parottasalna.com/2024/08/11/create-a-command-line-to-do-list-application/" rel="noopener noreferrer"&gt;https://parottasalna.com/2024/08/11/create-a-command-line-to-do-list-application/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>software</category>
      <category>tooling</category>
    </item>
    <item>
      <title>Task 6: Tuple</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Sun, 27 Apr 2025 03:50:47 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-6-tuple-1ag</link>
      <guid>https://dev.to/pradeepmtm/task-6-tuple-1ag</guid>
      <description>&lt;p&gt;1.Create a tuple containing the names of three fruits. Print the tuple and its type.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F08rdu2qq1lt8vwndslgv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F08rdu2qq1lt8vwndslgv.png" alt="Image description" width="517" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Given a tuple t = ("apple", "banana", "cherry"), access and print the second element.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe4dn2zjp2na8rt2x8a31.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe4dn2zjp2na8rt2x8a31.png" alt="Image description" width="477" height="157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Unpack the tuple t = (1, 2, 3) into variables a, b, and c, and print the variables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6mlch526nfomwgoj1y12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6mlch526nfomwgoj1y12.png" alt="Image description" width="457" height="237"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Concatenate two tuples t1 = (1, 2) and t2 = (3, 4) and print the result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh31o0k67j9ghx3cayw4z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh31o0k67j9ghx3cayw4z.png" alt="Image description" width="323" height="187"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Create a tuple t = ("repeat",) and repeat it three times. Print the resulting tuple.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ul5ddy7bovnx47at69h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ul5ddy7bovnx47at69h.png" alt="Image description" width="256" height="133"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.Given a tuple t = (1, 2, 3, 2, 2, 4), count the number of times the number 2 appears.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwp9b0s5sttkeubxdm762.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwp9b0s5sttkeubxdm762.png" alt="Image description" width="356" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.Given a tuple t = ("a", "b", "c", "d"), find the index of the element "c".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzqsr08fqg01leo4p9m9o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzqsr08fqg01leo4p9m9o.png" alt="Image description" width="335" height="180"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8.Check if the element 5 is present in the tuple t = (1, 2, 3, 4)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fczc5kr13b8l1lkyjh623.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fczc5kr13b8l1lkyjh623.png" alt="Image description" width="338" height="232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;9.Find and print the length of the tuple t = ("one", "two", "three").&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffgk714zh2l834um7lzik.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffgk714zh2l834um7lzik.png" alt="Image description" width="366" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;10.Slice the tuple t = (0, 1, 2, 3, 4, 5) to obtain a sub-tuple containing only the elements from index 2 to 4.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F564hwagopvvuef8d6ocw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F564hwagopvvuef8d6ocw.png" alt="Image description" width="322" height="157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;11.Create a nested tuple representing a 2D point (x, y) = ((1, 2), (3, &lt;br&gt;
4)). Access and print the second coordinate of the second point.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fczva0btmp43yc7is2g2h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fczva0btmp43yc7is2g2h.png" alt="Image description" width="372" height="482"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;12.Try to change the value of the first element in the tuple t = (1, 2, 3) and observe what happens.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6n14dta3up924owfryc5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6n14dta3up924owfryc5.png" alt="Image description" width="766" height="416"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;13.Convert a list l = [1, 2, 3] to a tuple and print the result. Then convert a tuple t = (4, 5, 6) to a list and print the result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpcyxf1f3sw49h00udwv2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpcyxf1f3sw49h00udwv2.png" alt="Image description" width="462" height="317"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;14.Create a tuple with a single item 5 and verify its type is a tuple.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6h832yjkzbwc3s17bfpr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6h832yjkzbwc3s17bfpr.png" alt="Image description" width="248" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;15.Iterate over the tuple t = ("ParottaSalna", "is", "good") and print each element.&lt;br&gt;
16.Convert the string "hello" into a tuple of characters.&lt;br&gt;
17.Convert a dictionary d = {"one": 1, "two": 2} into a tuple of its items.&lt;br&gt;
18.Write a function that takes a tuple of numbers and returns the sum of the numbers.&lt;br&gt;
19.Use tuples as keys in a dictionary to represent points on a grid. For example, grid = {(0, 0): "origin", (1, 2): "point A"}.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Task 5: Python Function</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Sat, 26 Apr 2025 05:32:55 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-4-python-function-50o4</link>
      <guid>https://dev.to/pradeepmtm/task-4-python-function-50o4</guid>
      <description>&lt;p&gt;1.Write a function greet that takes a name as an argument and prints a greeting message.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fer1ukvr6z2oiho78234u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fer1ukvr6z2oiho78234u.png" alt="Image description" width="387" height="193"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Write a function sum_two that takes two numbers as arguments and returns their sum.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqaoo4d5a9df2ynp081pm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqaoo4d5a9df2ynp081pm.png" alt="Image description" width="407" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Write a function is_even that takes a number as an argument and returns True if the number is even, and False if it is odd.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fajx9cbj7luyxo2dr6sgl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fajx9cbj7luyxo2dr6sgl.png" alt="Image description" width="433" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Write a function find_max that takes two numbers as arguments and returns the larger one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1yc2guj9ar0b1agvdi5a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1yc2guj9ar0b1agvdi5a.png" alt="Image description" width="457" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Write a function multiplication_table that takes a number n and prints the multiplication table for n from 1 to 10.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa8qfctzzh51l16bhbrf7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa8qfctzzh51l16bhbrf7.png" alt="Image description" width="465" height="468"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwkkk8l7o23ti6rckkp6w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwkkk8l7o23ti6rckkp6w.png" alt="Image description" width="445" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.Write a function celsius_to_fahrenheit that takes a temperature in Celsius and returns the temperature in Fahrenheit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F72bd9jclkkxm6n0f6poz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F72bd9jclkkxm6n0f6poz.png" alt="Image description" width="660" height="207"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.Write a function power that takes two arguments, a number and an exponent, and returns the number raised to the given exponent. The exponent should have a default value of 2.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7b5z0l2wr3yn03rqrjd0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7b5z0l2wr3yn03rqrjd0.png" alt="Image description" width="523" height="323"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TASK 4: Python Lists</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Sat, 26 Apr 2025 02:10:41 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-4-python-lists-353g</link>
      <guid>https://dev.to/pradeepmtm/task-4-python-lists-353g</guid>
      <description>&lt;p&gt;1.Create a list of five delivery items and print the third item in the list. eg: [“Notebook”, “Pencil”, “Eraser”, “Ruler”, “Marker”]&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkuqc3e1oui44xej7apad.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkuqc3e1oui44xej7apad.png" alt="Image description" width="656" height="202"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.A new delivery item “Glue Stick” needs to be added to the list. Add it to the end of the list and print the updated list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshta3youowjkczm3dup2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshta3youowjkczm3dup2.png" alt="Image description" width="653" height="295"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Insert “Highlighter” between the second and third items and print the updated list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh83ovixr6szuo0fpcjxy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh83ovixr6szuo0fpcjxy.png" alt="Image description" width="800" height="183"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.One delivery was canceled. Remove “Ruler” from the list and print the updated list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0nmgz83m7gdix7hura3o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0nmgz83m7gdix7hura3o.png" alt="Image description" width="800" height="163"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.The delivery man needs to deliver only the first three items. Print a sublist containing only these items.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuk0dwu9i335ugk0gtsi4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuk0dwu9i335ugk0gtsi4.png" alt="Image description" width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.The delivery man has finished his deliveries. Convert all item names to uppercase using a list comprehension and print the new list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiu9wydslwsr2bf8tzxhp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiu9wydslwsr2bf8tzxhp.png" alt="Image description" width="792" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.Check if “Marker” is still in the list and print a message indicating whether it is found.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo7465wjmjx9rqhrt3wvm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo7465wjmjx9rqhrt3wvm.png" alt="Image description" width="792" height="157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8.Print the number of delivery items in the list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbr5ud5po1rcbd2hvq8xk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbr5ud5po1rcbd2hvq8xk.png" alt="Image description" width="800" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;9.Sort the list of items in alphabetical order and print the sorted list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4f48ms0t80rcmt0kgl58.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4f48ms0t80rcmt0kgl58.png" alt="Image description" width="800" height="163"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;10.The delivery man decides to reverse the order of his deliveries. Reverse the list and print it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0rkzdzux61bq1yz0n072.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0rkzdzux61bq1yz0n072.png" alt="Image description" width="787" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;11.Create a list where each item is a list containing a delivery item and its delivery time. Print the first item and its time.&lt;/p&gt;

&lt;p&gt;12.Count how many times “Ruler” appears in the list and print the count.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F35c6mkzbcs8ljulqqxav.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F35c6mkzbcs8ljulqqxav.png" alt="Image description" width="800" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;13.Find the index of “Pencil” in the list and print it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ljpji9hr8s3fki5zb3t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4ljpji9hr8s3fki5zb3t.png" alt="Image description" width="800" height="158"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;14.Extend the list items with another list of new delivery items and print the updated list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx51b6mf0dz5im9k58zyn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx51b6mf0dz5im9k58zyn.png" alt="Image description" width="800" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;15.Clear the list of all delivery items and print the list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg1010lx3bpmsvbkz1hw2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg1010lx3bpmsvbkz1hw2.png" alt="Image description" width="800" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;16.Create a list with the item “Notebook” repeated three times and print the list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwtr0c3plddiac185qvv2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwtr0c3plddiac185qvv2.png" alt="Image description" width="492" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;17.Using a nested list comprehension, create a list of lists where each sublist contains an item and its length, then print the new list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2xgw3m546sgemo0wc9r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw2xgw3m546sgemo0wc9r.png" alt="Image description" width="800" height="132"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;18.Filter the list to include only items that contain the letter “e” and print the filtered list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdxxyfyulbg8le4cq1xsi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdxxyfyulbg8le4cq1xsi.png" alt="Image description" width="800" height="503"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;19.Remove duplicate items from the list and print the list of unique items.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqprl8segw8fk7uuirqpn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqprl8segw8fk7uuirqpn.png" alt="Image description" width="758" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TASK 3: Slicing &amp; Indexing</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Sun, 20 Apr 2025 07:42:22 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/slicing-indexing-tasks-2o6g</link>
      <guid>https://dev.to/pradeepmtm/slicing-indexing-tasks-2o6g</guid>
      <description>&lt;p&gt;1.Write a function that takes a string and returns a new string consisting of its first and last character.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flvnj9dch6tn6uofars74.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flvnj9dch6tn6uofars74.png" alt="Image description" width="377" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Write a function that reverses a given string.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkro5ivzbm92ke6svldsw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkro5ivzbm92ke6svldsw.png" alt="Image description" width="315" height="173"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Given a string, extract and return a substring from the 3rd to the 8th character (inclusive).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdyavdbdpc4379r3dt94x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdyavdbdpc4379r3dt94x.png" alt="Image description" width="257" height="138"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Write a function that returns every second character from a given string.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftfw4btfsqz53ugpw1mwm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftfw4btfsqz53ugpw1mwm.png" alt="Image description" width="272" height="182"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Write a function that replaces the middle third of a string with asterisks. If the length of the string is not divisible by 3, adjust the middle third accordingly.&lt;/p&gt;

&lt;p&gt;6.Write a function that checks if a given string is a palindrome (reads the same backward as forward).&lt;/p&gt;

&lt;p&gt;7.Given an email address, extract and return the domain.&lt;br&gt;
Ans: How to find incase there are multiple occurrences? Loop?&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fikp698odpdvgja2wrwu0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fikp698odpdvgja2wrwu0.png" alt="Image description" width="427" height="322"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi70tsoe9bo6saf8ycq7l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi70tsoe9bo6saf8ycq7l.png" alt="Image description" width="430" height="146"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8.Write a function that returns every third character from a given string.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhldgt7zgokemfg6o5txq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhldgt7zgokemfg6o5txq.png" alt="Image description" width="427" height="116"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;9.Write a function that extracts and returns characters at even indices from a given string.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmikyzea2y60q64s8bg2v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmikyzea2y60q64s8bg2v.png" alt="Image description" width="460" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;10.Write a function that skips every second character and then reverses the resulting string.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F484mv2jbedufwlpjwy6o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F484mv2jbedufwlpjwy6o.png" alt="Image description" width="407" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TASK 2: Constants and Variables</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Sun, 20 Apr 2025 04:14:19 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-2-constants-and-variables-58gl</link>
      <guid>https://dev.to/pradeepmtm/task-2-constants-and-variables-58gl</guid>
      <description>&lt;p&gt;1.Create a variable named name and assign your name to it. Then print the value of the variable.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4d1mf9qn0ye9fy27p1e8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4d1mf9qn0ye9fy27p1e8.png" alt="Image description" width="262" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Create a variable age and assign your age to it. Later, reassign the variable with a new value and print the new value.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffw2ycx1s60ry64m2zryy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffw2ycx1s60ry64m2zryy.png" alt="Image description" width="317" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Assign the values 5, 10, and 15 to three variables a, b, and c in a single line. Print their values.&lt;br&gt;
Ans:TypeError on 4th statement, because we're trying to concatenate integers (a, b, c) with strings&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fien19o2mqc2zd9zp8zuz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fien19o2mqc2zd9zp8zuz.png" alt="Image description" width="783" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Swap the values of two variables x and y without using a third variable. Print their values before and after swapping.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fia9jzgcn8glcrft5luhc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fia9jzgcn8glcrft5luhc.png" alt="Image description" width="276" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Define constants PI with appropriate values and print them.&lt;br&gt;
Ans: constants are typically written in all uppercase letters with underscores separating words. However, Python does not enforce this, so constants are not truly immutable. You can still override.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkny2xa1uehxbwuh69pho.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkny2xa1uehxbwuh69pho.png" alt="Image description" width="232" height="135"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.Write a program that calculates the area of a circle using the constant PI and a variable radius. Print the area.&lt;br&gt;
Ans: ** is Squared&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faekgf9llqhs8bbch5xln.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faekgf9llqhs8bbch5xln.png" alt="Image description" width="481" height="280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.Define constants for the length and width of a rectangle. Calculate and print the area.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxoitn1xr35m1p42kn72o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxoitn1xr35m1p42kn72o.png" alt="Image description" width="485" height="196"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8.Define a constant for π (pi) and a variable for the radius. Calculate and print the circumference of the circle.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwy0u2bgibhbndh3fijdi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwy0u2bgibhbndh3fijdi.png" alt="Image description" width="591" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>TASK 1: Python – Print exercises</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Sun, 20 Apr 2025 02:26:33 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/task-1-python-print-exercises-3g02</link>
      <guid>https://dev.to/pradeepmtm/task-1-python-print-exercises-3g02</guid>
      <description>&lt;p&gt;1.How do you print the string “Hello, world!” to the screen?&lt;br&gt;
Ans: Using sep and end Parameters is preferred way.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwclshri0qq4z2e3m5u18.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwclshri0qq4z2e3m5u18.png" alt="Image description" width="562" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.How do you print the value of a variable name which is set to “Syed Jafer” or Your name?&lt;br&gt;
Ans: Note the Variable is case sensitive&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flf2mc5d1hqdtc3ydys7u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flf2mc5d1hqdtc3ydys7u.png" alt="Image description" width="800" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.How do you print the variables name, age, and city with labels “Name:”, “Age:”, and “City:”?&lt;br&gt;
Ans: Using keyword sep="," brings in , between the Variable Name and Value itself, so avoid&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3voh4s8w0yuj2o7o5er9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3voh4s8w0yuj2o7o5er9.png" alt="Image description" width="660" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.How do you use an f-string to print name, age, and city in the format “Name: …, Age: …, City: …”?&lt;br&gt;
Ans: To insert variables directly into the string used f-string&lt;br&gt;
Also, you can assign values to multiple variables in a single line as seen in 1st line&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjtk328k6mgx5cnwi2n6v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjtk328k6mgx5cnwi2n6v.png" alt="Image description" width="632" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.How do you concatenate and print the strings greeting (“Hello”) and target (“world”) with a space between them?&lt;br&gt;
Ans: + is used to concat the items&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhq353fdiysjuqkosgnbf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhq353fdiysjuqkosgnbf.png" alt="Image description" width="383" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;6.How do you print three lines of text with the strings “Line1”, “Line2”, and “Line3” on separate lines?****&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fanhlforjhkmi4raekf2h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fanhlforjhkmi4raekf2h.png" alt="Image description" width="495" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;7.How do you print the string He said, "Hello, world!" including the double quotes?&lt;br&gt;
Ans: To print quotes inside a string, you can use either single or double quotes to enclose the string and the other type of quotes inside it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbvarwxewu9wsf4ee7j3b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbvarwxewu9wsf4ee7j3b.png" alt="Image description" width="456" height="241"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;8.How do you print the string C:\Users\Name without escaping the backslashes?&lt;br&gt;
Ans: you can also use a literal backslash "\" when using Concat or Try with 'r' to treat backslashes as literal characters&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9qwch6ci0xvb37i9xihu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9qwch6ci0xvb37i9xihu.png" alt="Image description" width="585" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;9.How do you print the result of the expression 5 + 3?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9s6825gkwhuiy0wbu2i1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9s6825gkwhuiy0wbu2i1.png" alt="Image description" width="376" height="312"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;10.How do you print the strings “Hello” and “world” separated by a hyphen -?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fprp1dxybud94aycj9ml8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fprp1dxybud94aycj9ml8.png" alt="Image description" width="417" height="137"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;11.How do you print the string “Hello” followed by a space, and then print “world!” on the same line?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2dhbzjvtmwpkcajyrch0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2dhbzjvtmwpkcajyrch0.png" alt="Image description" width="502" height="125"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;12.How do you print the value of a boolean variable is_active which is set to True?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxksb9jhprrx7fy6ch09i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxksb9jhprrx7fy6ch09i.png" alt="Image description" width="393" height="171"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;13.How do you print the string “Hello ” three times in a row?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxalmnz2qsmlbq03wnkk2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxalmnz2qsmlbq03wnkk2.png" alt="Image description" width="362" height="643"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;14.How do you print the sentence The temperature is 22.5 degrees Celsius. using the variable temperature?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnjv4ebejlymvkhgenpmq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnjv4ebejlymvkhgenpmq.png" alt="Image description" width="610" height="157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;15.How do you print name, age, and city using the .format() method in the format “Name: …, Age: …, City: …”?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9j7n44e5vh9tanvfa9k1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9j7n44e5vh9tanvfa9k1.png" alt="Image description" width="612" height="157"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;16.How do you print the value of pi (3.14159) rounded to two decimal places in the format The value of pi is approximately 3.14?&lt;br&gt;
Ans: pi is the variable &amp;amp; .2f formats it as a floating-point number with 2 digits after the decimal&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fscglegx4awaae909fbzn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fscglegx4awaae909fbzn.png" alt="Image description" width="557" height="152"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;17.How do you print the words “left” and “right” with “left” left-aligned and “right” right-aligned within a width of 10 characters each?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3d4vwt0mjcybsxyqynah.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3d4vwt0mjcybsxyqynah.png" alt="Image description" width="531" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>print</category>
      <category>programming</category>
    </item>
    <item>
      <title>PYTHON Installation (IDLE &amp; COLLAB Execution Test)</title>
      <dc:creator>Pradeep Pep</dc:creator>
      <pubDate>Mon, 08 Jul 2024 14:09:33 +0000</pubDate>
      <link>https://dev.to/pradeepmtm/python-installation-idle-collab-execution-test-ilc</link>
      <guid>https://dev.to/pradeepmtm/python-installation-idle-collab-execution-test-ilc</guid>
      <description>&lt;p&gt;&lt;a href="https://www.python.org/downloads/" rel="noopener noreferrer"&gt;https://www.python.org/downloads/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;check the system type of yours.&lt;br&gt;
The latest series will not work on win 7 or earlier&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnmo49pm5euljpldim0cn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnmo49pm5euljpldim0cn.png" alt="Image description" width="800" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F18dvh0n303qqpw7vrur6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F18dvh0n303qqpw7vrur6.png" alt="Image description" width="800" height="477"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fydwvr1egmmrdu096ijk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fydwvr1egmmrdu096ijk7.png" alt="Image description" width="800" height="581"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwvr7dm4y9hdw2l7vqpc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwvr7dm4y9hdw2l7vqpc.png" alt="Image description" width="800" height="487"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff356gl3kgp2w0u8wwl2g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff356gl3kgp2w0u8wwl2g.png" alt="Image description" width="800" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpyk8dh7t7pead2okavty.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpyk8dh7t7pead2okavty.png" alt="Image description" width="800" height="522"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm8zmkzq9nko9ozeq0lw1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm8zmkzq9nko9ozeq0lw1.png" alt="Image description" width="800" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk5e0ipai3fkqhr8r9jjb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk5e0ipai3fkqhr8r9jjb.png" alt="Image description" width="800" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvw1asewdflzatwvwqjq2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvw1asewdflzatwvwqjq2.png" alt="Image description" width="800" height="497"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxyb2g2joud30e17pj57f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxyb2g2joud30e17pj57f.png" alt="Image description" width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjeu81wxvk3acb0u2s2m2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjeu81wxvk3acb0u2s2m2.png" alt="Image description" width="800" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx02d7g146n18zfpw1rk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx02d7g146n18zfpw1rk7.png" alt="Image description" width="800" height="323"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0wtn1he83lgeb9uos6xp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0wtn1he83lgeb9uos6xp.png" alt="Image description" width="800" height="331"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;IDLE, an integrated development environment (IDE) for Python, to write and execute Python scripts. *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89i20wr004ohbwyv7p1w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F89i20wr004ohbwyv7p1w.png" alt="Image description" width="800" height="769"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftylkkbi4xzcv7i27v9sw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftylkkbi4xzcv7i27v9sw.png" alt="Image description" width="800" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs2msd93cf0rwf2hry6bb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs2msd93cf0rwf2hry6bb.png" alt="Image description" width="800" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Choose File --&amp;gt; New File *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flfq81qu1lfd41rcchwtu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flfq81qu1lfd41rcchwtu.png" alt="Image description" width="800" height="305"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Type the code &amp;amp; Save the file&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feqa7dhw0ozafms72kimu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feqa7dhw0ozafms72kimu.png" alt="Image description" width="800" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm8c7jfmlo11a7ie7ydg2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm8c7jfmlo11a7ie7ydg2.png" alt="Image description" width="800" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkhfd4abfwuybvznr263q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkhfd4abfwuybvznr263q.png" alt="Image description" width="800" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx44d92djdf0nlxm8goaw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx44d92djdf0nlxm8goaw.png" alt="Image description" width="800" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Same above can be achieved in as below as well&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk2ics8hacz79eqlepytb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk2ics8hacz79eqlepytb.png" alt="Image description" width="800" height="263"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using Collab (alternate way)&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://colab.research.google.com/" rel="noopener noreferrer"&gt;https://colab.research.google.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftj3g28nnjrgo1o8xaa9i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftj3g28nnjrgo1o8xaa9i.png" alt="Image description" width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8lyhme7uxkw3wf563c1l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8lyhme7uxkw3wf563c1l.png" alt="Image description" width="800" height="236"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>installation</category>
    </item>
  </channel>
</rss>
