<?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: Ari Wira Saputra</title>
    <description>The latest articles on DEV Community by Ari Wira Saputra (@ariwirasaputra).</description>
    <link>https://dev.to/ariwirasaputra</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%2F1030779%2Fde07c183-f8b4-4cfc-b5d5-f8501d9a9a92.png</url>
      <title>DEV Community: Ari Wira Saputra</title>
      <link>https://dev.to/ariwirasaputra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ariwirasaputra"/>
    <language>en</language>
    <item>
      <title>Days_18 Guess the Number</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Sat, 01 Apr 2023 14:09:19 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days18-guess-the-number-47no</link>
      <guid>https://dev.to/ariwirasaputra/days18-guess-the-number-47no</guid>
      <description>&lt;p&gt;We are going to build a "Guess the Number" guessing game.&lt;/p&gt;

&lt;p&gt;You are going to use a while loop and some of the concepts from the past few days.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start by picking a number between 0 and 1,000,000. This will be 
your first variable.&lt;/li&gt;
&lt;li&gt;Create a while loop to keep asking the user to guess your number.&lt;/li&gt;
&lt;li&gt;If they are too low, tell them "too low." If they guess too high 
tell, them "too high."&lt;/li&gt;
&lt;li&gt;If the user guesses correctly, tell them they are a winner (maybe add a fun emoji too!)
5.Count the number of attempts it took for the user to guess number. Make sure you only show that after they get the answer correct.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Let's Cheat Continue
#
#29 MARCH 2023


class challenge18():

  def __init__(self, number, testing):
    self.number = number
    self.testing = testing

  def methode(self):
    self.number = 50
    while self.testing in range(0, 100):
      if self.testing &amp;gt; self.number:
        print("angka sangat besar")
      elif self.testing &amp;lt; self.number:
        print("angka sangat kecil")


def call():
  testing = challenge18(input("masukan angka"))
  testing.methode()


call()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Days_17 Let's Cheat Continue</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Wed, 29 Mar 2023 04:25:10 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days17-lets-cheat-continue-3k95</link>
      <guid>https://dev.to/ariwirasaputra/days17-lets-cheat-continue-3k95</guid>
      <description>&lt;p&gt;The continue command stops executing code in the loop and starts at the top of the loop again. Essentially, we want to kick the user back to the original question. Adding continue will start the code from the start and ask the first question again: "Do you go left or right?".&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class next17():
    def __init__(self, direction,player1,player2):
        self.direction = direction
        self.player1 = player1
        self.pplayer2 = player2

    def Methode1(self):
        while True:
            print("You are in a corridor, do you go left or right?")
            self.direction = input("&amp;gt; ")
            if self.direction == "right":
                print("You have fallen to your death")
                continue
            elif self.direction == "left":
                break
            else:
                print("ahh! you're a genius,you've won")

    def Methode2(self):
      #from getpass import getpass as input
      player1 = 0
      player2 = 0

      while True:
        self.player1 = input("Enter your chose player 1: ")
        self.player2 = input("Enter your chose Player 2: ")
        #Rock, Paper, Scissors
        if self.player1 =="rock" and self.player2 == "paper":
          player2 +=1
          if player2 == 3:
             print("Score Player2 =", player2 ,"Congratulation player2,  you win!!!")
             break
        elif self.player1 =="rock" and self.player2 == "scissors":
          player1 +=1
          if player1 == 3:
             print("Score Player1 =", player1 ,"Congratulation player1,  you win!!!")
             break
        elif self.player1 =="scissors" and self.player2 == "rock":
          player2 +=1
          if player2 == 3:
             print("Score Player2 =", player2 ,"Congratulation player2,  you win!!!")
             break
        elif self.player1 =="scissors" and self.player2 == "paper":
          player1 +=1
          if player1 == 3:
             print("Score Player1 =", player1 ,"Congratulation player1,  you win!!!")
             break
        elif self.player1 =="paper" and self.player2 == "rock":
          player1 +=1
          if player1 == 3:
             print("Score Player1 =", player1 ,"Congratulation player1,  you win!!!")
             break
        elif self.player1 =="paper" and self.player2 == "scissors":
          player2 +=1
          if player2 == 3:
             print("Score Player2 =", player2 ,"Congratulation player2,  you win!!!")
             break
        elif self.player1 =="rock" and self.player2 == "rock":
          continue
        elif self.player1 =="scissors" and self.player2 == "scissors":
          continue
        elif self.player1 =="paper" and self.player2 == "paper":
          continue

def call():
    start = next17("","","")
    start.Methode1()
    start.Methode2()


call()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Days_16 Make it Stop!</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Tue, 28 Mar 2023 10:35:32 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days16-make-it-stop-4l94</link>
      <guid>https://dev.to/ariwirasaputra/days16-make-it-stop-4l94</guid>
      <description>&lt;p&gt;Assuming you are writing code, "while true" is a programming construct that creates an infinite loop. The code within the loop will be executed repeatedly until a condition is met to break out of the loop.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# All About the Loop
#
#28 MARCH 2023
class repet():
  def __init__(self,goAgain,answer,counter,addAnother):
    self.goAgain = goAgain
    self.answer = answer
    self.counter = counter
    self.addAnother =addAnother

  def methode(self):
    while True:
      print("This program is running")
      self.goAgain = input("Go again?: ")
      if self.goAgain == "no":
        break
    print("Aww, I was having a good time")
  def methode1(self):
    while True:
      self.counter = 0
      self.answer = int(input("Enter a number: "))
      print("Adding it up!!! ")
      self.counter += self.answer
      print("Current total is",self.counter)
      self.addAnother = input("add another? ")
      if self.addAnother =="no":
        break
    print("Bye!!!")


def call():
  t = repet("",0,"", "")
  t.methode()
  t.methode1()

call()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's important to be careful when using infinite loops in your code, as they can cause your program to become stuck and unresponsive if there is no way to break out of the loop.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Days_15 All About the Loop</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Sun, 26 Mar 2023 03:54:06 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days15-all-about-the-loop-23i8</link>
      <guid>https://dev.to/ariwirasaputra/days15-all-about-the-loop-23i8</guid>
      <description>&lt;p&gt;While Loop&lt;br&gt;
A while loop allows your code to repeat itself based on a condition you set.&lt;/p&gt;

&lt;p&gt;It is similar to an if statement in that you ask a question, and as long as the answer is true, the computer will repeatedly run the code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# All About the Loop
#
#26 MARCH 2023

class looping():
  def __init__(self,counter,exit,text):
    self.counter = counter
    self.exit = exit
    self.text = text

  def methode(self):
    while self.counter &amp;lt; 10:
      print(self.counter)
      self.counter +=1
  def methode2(self):
    while self.exit != "yes":
      print("🥳")
      self.exit = input("exit?: ")
  def methode3(self):
    while self.text !="yes":
      self.text = input("What animal do you wont? ")
      if self.text =="cow":
        print("a cow goes moo")
        self.text = input("Do you want to exit: ")
      elif self.text =="lemur":
        print("Lemur goes awooga")
        self.text = input("Do you want to exit: ")
      else:
        self.text = input("Are you worng, Do you want to exit: ")

def call():
  testing = looping(1,"","")
  testing.methode()
  testing.methode2()
  testing.methode3()
call()

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Infinite Loop&lt;br&gt;
You have to be really careful that you don't accidentally invoke an infinite loop! This is where the computer will loop code until the end of time. Without a break. Forever. 😭&lt;/p&gt;

&lt;p&gt;Fix an infinite loop by adding:&lt;br&gt;
  variable +=1&lt;br&gt;
This is just saying "count to 10 by 1 each time." to make the loop end.&lt;/p&gt;

&lt;p&gt;Don't forget, if your condition is a &amp;gt; then you might need to -=. This will subtract from the variable instead of adding to it.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Days_14 Rock, Paper, Scissors</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Sat, 25 Mar 2023 04:52:51 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days14-rock-paper-scissors-4bo</link>
      <guid>https://dev.to/ariwirasaputra/days14-rock-paper-scissors-4bo</guid>
      <description>&lt;p&gt;Today, you are going to build a rock, paper, scissors game.&lt;/p&gt;

&lt;p&gt;Start with this code below to ensure that whenever you use input, each player cannot see what the other player typed in&lt;br&gt;
&lt;code&gt;from getpass import getpass as input&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Rock, Paper, Scissors = 
#
#22 MARCH 2023

from getpass import getpass as input

class suit():
  def __init__(self,player1,player2):
    self.player1 = player1
    self.player2 = player2

  def methode(self):
    if self.player1 == "r":
      if self.player2 =="s":
        print("player1, You Winnn!!!!...")
        print("player2, You loseee!!!!...")
      elif self.player2=="p":
        print("player1,You Losee!!!!...")
        print("player2,You Winnnn!!!!...")
      else:
        print("player1, player2,You seri!!!!...")
    elif self.player1 =="p":
      if self.player2=="r":
        print("player1, You Winnn!!!!...")
        print("player2, You loseee!!!!...")
      elif self.player2=="s":
        print("player1,You Losee!!!!...")
        print("player2,You Winnnn!!!!...")
      else:
        print("player1, player2,You seri!!!!...")
    else:
      if self.player2 =="r":
        print("player1,You Losee!!!!...")
        print("player2,You Winnnn!!!!...")
      elif self.player2 =="p":
        print("player1,You Winnn!!!!...")
        print("player2,You loseee!!!!...")
      else:
         print("player1,player2,You seri!!!!...")

def call():
  while True:
    player1 = input("Masukan Pilihan player 1: ")
    player2 = input("masukan pilihan player 2: ")
    t = suit(player1, player2)
    t.methode()
call()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Days_13 Gradebook Builder</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Fri, 24 Mar 2023 13:39:12 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days13-gradebook-builder-4c7c</link>
      <guid>https://dev.to/ariwirasaputra/days13-gradebook-builder-4c7c</guid>
      <description>&lt;p&gt;Here is a grading scale to help you decide the letter grade the user received (feel free to use a different grading scale if you like.)&lt;/p&gt;

&lt;p&gt;Letter Grade    Percentage&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--udrwLMCi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5dt5srccbqqj6hjb0t9d.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--udrwLMCi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5dt5srccbqqj6hjb0t9d.PNG" alt="Image description" width="230" height="236"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Rank():
  def __init__(self, nama, nilai):
    self.nama = nama
    self.nilai = nilai

  def penentuan(self):
    if self.nilai &amp;gt;= 90 and self.nilai &amp;lt;= 100:
      print(self.nama,"Value A+,CONGRATULATIONS")
    elif self.nilai &amp;gt;= 80 and self.nilai &amp;lt;= 89:
      print(self.nama,"Value A,Bagus. Pertahankan")
    elif self.nilai &amp;gt;= 70 and self.nilai &amp;lt;= 79:
      print(self.nama,"Value B,Tetap semangat")
    elif self.nilai &amp;gt;= 60 and self.nilai &amp;lt;= 69:
      print(self.nama,"Value C,Tingkatkan Lagi")
    elif self.nilai &amp;gt;= 50 and self.nilai &amp;lt;= 59:
      print(self.nama,"Value D,Jangan menyerah")
    else:
      print(self.nama,"Belajar Yang Giat ok!!!!!!!!")

def Masukan(): 
  nama = input("Masukan Nama? ")
  nilai = int(input("Masukan Nilai? "))
  t = Rank(nama,nilai)
  t.penentuan()
Masukan()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Days_12 Find All the Bugs</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Thu, 23 Mar 2023 07:50:15 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days12-find-all-the-bugs-1o2e</link>
      <guid>https://dev.to/ariwirasaputra/days12-find-all-the-bugs-1o2e</guid>
      <description>&lt;p&gt;This course has taught you to squash bugs like a true programmer. Find the errors and start debugging like a pro&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Find All the Bugs
#
#22 MARCH 2023

print("100 Days of Code QUIZ")
print()
print("How many can you answer correctly?")
ans1 = ("What language are we writing in?")
if ans1 == "python":
  print("Correct")
else:
  print("Nope🙈")
ans2 = input("Which lesson number is this?")
if(ans2&amp;gt;12):
  print("We're not quite that far yet")
elif(ans2==12):
  print("That's right!")
else:
  print("We've gone well past that!")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Days_11 525,600 minutes</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Thu, 23 Mar 2023 07:26:35 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days11-525600-minutes-5edk</link>
      <guid>https://dev.to/ariwirasaputra/days11-525600-minutes-5edk</guid>
      <description>&lt;p&gt;Use the power of breaking a program down into its parts. We could Google this, but why not make a program for this instead.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;60 seconds = 1 minute&lt;br&gt;
60 minutes = 1 hour&lt;br&gt;
24 hours = 1 day&lt;br&gt;
31 days = 1 month&lt;br&gt;
12 months = 1 year&lt;br&gt;
365 days = 1 year&lt;br&gt;
366 day = 1 leap year (this is every four years)&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class times():
  def __init__(self, seconds=0, minutes=0, hours=0, days=0, months=0, year=0):
    self.seconds = seconds
    self.minutes = minutes
    self.hours = hours
    self.days = days
    self.months = months
    self.year = year

  def konversi_second(self):
    if self.seconds == "M" or self.seconds == "m" :
      self.seconds = int(input("Masukan Nilainya secondnya: "))
      t = self.seconds / 60
      print(t, "menit")
    elif self.seconds == "H" or self.seconds == "h":
      self.seconds = int(input("Masukan Nilainya secondnya: "))
      t = self.seconds / 3600
      print(t, "Hours")
    else:
      print("Masukan Nilai Yang bener")
  def Konversi_Menit(self):
    if self.minutes == "S" or self.minutes== "s" :
      self.minutes = int(input("Masukan Nilainya menitnya: "))
      t = self.minutes * 60
      print(t, "Second")
    elif self.minutes == "H" or self.minutes == "h" :
      self.minutes = int(input("Masukan Nilainya menitnya: "))
      t = self.minutes / 60
      print(t, "Hours")
    else:
      print("Masukan Nilai Yang bener!!")


def call(): 
  t = times()
  t.seconds = input("Masukkan nilai konversi second(menit atau jam) M/H: ")
  t.konversi_second()
  t.minutes = input("Masukkan nilai konversi Menit(second ke jam)  S/H:")
  t.Konversi_Menit()

call()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Days10_Show Me the $$</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Tue, 21 Mar 2023 10:15:25 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days10show-me-the--4j</link>
      <guid>https://dev.to/ariwirasaputra/days10show-me-the--4j</guid>
      <description>&lt;p&gt;Code basic math principles (+, -, *, /), build your own tip calculator, and never calculate numbers again!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Nesting Dolls Code
#
#20 MARCH 2023

def exercise_1():
  adding = 4+3
  subtraction = 8-9
  multiplication = 4*12
  division = 50/5
  squared = 5**2

  modulo = 15 % 4
  divisor = 15 // 2
  print(adding,subtraction,multiplication,division,squared,modulo,divisor)

def exercise_2():
  a = 3.4
  b = 6.8
  c = 2467
  d = 4673
  e = 10
  f = a*b
  g = c/d
  h = e^2
  print(f,g,h)


def cell():
  exercise_1()
  exercise_2()
cell()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Days_9 Casting Spells on Your Code</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Mon, 20 Mar 2023 08:26:22 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days9-casting-spells-on-your-code-3n34</link>
      <guid>https://dev.to/ariwirasaputra/days9-casting-spells-on-your-code-3n34</guid>
      <description>&lt;p&gt;If statements support more than ==. They support inequality symbols as well. Remember those &amp;lt;, &amp;gt;, and = signs you used in math way back when? Well they are back again, but this time they look a bit different.&lt;br&gt;
&lt;code&gt;1. equal --&amp;gt; 5 == 5&lt;/code&gt;&lt;br&gt;
&lt;code&gt;2. not equal --&amp;gt; 3 != 5&lt;/code&gt;&lt;br&gt;
&lt;code&gt;3. greater than --&amp;gt; 5 &amp;gt; 3&lt;/code&gt;&lt;br&gt;
&lt;code&gt;4. greater than or equal to --&amp;gt; 5 &amp;gt;= 3&lt;/code&gt;&lt;br&gt;
&lt;code&gt;5. less than --&amp;gt; 3 &amp;lt; 5&lt;/code&gt;&lt;br&gt;
&lt;code&gt;6. less than or equal to --&amp;gt; 3 &amp;lt;= 5&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Nesting Dolls Code
#
#19 MARCH 2023

def exercise_1():
  MyScore = int(input("Your Score: "))
  if MyScore &amp;gt; 1000:
    print("Winner!!!")
  else:
    print("Try again😭")

def exercise_2():
  myPI = float(input("What is PI to 3dp? "))
  if myPI == 3.142:
    print("It's Number ", myPI)
  else:
    print("Try again")
def exercise_3():
  score = int(input("What was your score on the test? "))
  if score &amp;gt;= 80:
    print("Not too shabby")
  elif score &amp;gt; 70:
    print("acceptable")
  else:
    print("Dude, you need to study more!")
def call():
  exercise_1()
  exercise_2()
  exercise_3()

call()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Days_8 Affirmation Generator</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Sun, 19 Mar 2023 10:46:27 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days8-affirmation-generator-3h9b</link>
      <guid>https://dev.to/ariwirasaputra/days8-affirmation-generator-3h9b</guid>
      <description>&lt;p&gt;Today's focus is using all the skills you have learned so far:&lt;/p&gt;

&lt;p&gt;input and output&lt;br&gt;
concatenation&lt;br&gt;
if statements&lt;br&gt;
nested if statements&lt;br&gt;
Build a custom affirmations generator to give the user a customized affirmation each day of the week.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Nesting Dolls Code
#
#19 MARCH 2023

def exercise_1():
  activity=input("What are you doing in sunday? ")
  if activity.lower() == "joging":
    print(activity.capitalize(),"is healthy lifestyle!!!.")
    Where =input("Where do you joging? ")
    if Where == "Hi":
      print(activity.capitalize(),"in",Where,"a great place!!!")
    else:
      print("interesting place")
  elif activity.lower() == "sleep":
    print(activity.capitalize(),"bad habits!!!")
  else:
    print("have a nice day")
def call():
  exercise_1()
call()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The final challenge is to create if statements that do not care about the capitalization of the names entered by the user.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Days_7 Nesting Dolls Code</title>
      <dc:creator>Ari Wira Saputra</dc:creator>
      <pubDate>Sun, 19 Mar 2023 08:43:03 +0000</pubDate>
      <link>https://dev.to/ariwirasaputra/days7-nesting-dolls-code-289e</link>
      <guid>https://dev.to/ariwirasaputra/days7-nesting-dolls-code-289e</guid>
      <description>&lt;p&gt;Nesting is a programming concept that exists in many programming languages, including Python. In Python, nesting is the practice of placing one statement within another statement or block of code, such as placing an "if" statement within another "if" statement or within a "for" loop or "while" loop.&lt;/p&gt;

&lt;p&gt;Nesting can be useful for evaluating complex conditions and executing certain blocks of code only under certain circumstances. However, it is important to maintain proper indentation when using nested statements in Python, as the correct indentation is crucial to ensure that the code is executed correctly and to avoid syntax errors.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#Nesting Dolls Code
#
#19 MARCH 2023

def exercies_1():
  TvShow = input("What is your favorite character? ")
  if TvShow == "Peppa Pig":
    print("Ugh,Why?")
    FaveCharacter = input("Who is Your Favorite Character? ")
    if FaveCharacter == "Daddy pig":
      print("Right answer")
    else:
      print("Nah, Dady pig's the greatest")
  elif TvShow == "paw patrol":
    print("Aww, sad times")
  else:
    print("Yeah, That's cool and all....")

def exercies_2():
  order = input("what would you like to order: pizza or humberger?")
  if order == "humburger":
    print("Tanks you")
    cheese = input("Do you wont cheese? ")
    if cheese == "yes":
      print("No cheese it is")
    else:
      print("allright")
  elif order == "pizza":
    print("Pizza coming up")
    toppings = input("do you wont pepperoni on that?")
    if toppings == "yes":
      print("we will add pepperoni")
    else:
      print("your pizza will not have pepperoni")
  else:
    print("please, order again")

def exercies_3():
  Movie = input("What kind of movies do you like? ")
  if Movie == "Marvel":
    print("Nice Movie!!!...")
    Filem = input("What kind of movies do you like a Harry Potter? ")
    if Filem == "yes":
      print("nice Movies")
    else:
      print("i think so...")
  elif Movie == "disny":
    print("I like Too")
  else:
    print("I don't like Movie, I like Music")

def call():
  exercies_1()
  exercies_2()
  exercies_3()
call()

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
