User input in Python is easy + exercises ⌨️

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 พ.ย. 2024

ความคิดเห็น •

  • @BroCodez
    @BroCodez  2 ปีที่แล้ว +48

    # ------------------------------------------------
    # EXERCISE 1 MAD LIBS
    # ------------------------------------------------
    adjective1 = input("Enter an adjective: ")
    noun = input("Enter a noun: ")
    adjective2 = input("Enter an adjective: ")
    verb = input("Enter a verb: ")
    adjective3 = input("Enter an adjective: ")
    print(f"Today I went to a {adjective1} zoo.")
    print(f"In an exhibit, I saw {noun}.")
    print(f"{noun} was {adjective2} and {verb}ing.")
    print(f"I was {adjective3}!")
    # ------------------------------------------------
    # EXERCISE 2 AREA CALC
    # ------------------------------------------------
    length = float(input("Enter the length: "))
    width = float(input("Enter the width: "))
    #area = length * width
    #print(f"The area is: {area}cm^2")
    # ------------------------------------------------
    # EXERCISE 3 SHOPPING CART
    # ------------------------------------------------
    item = input("What item would you like to buy?: ")
    price = float(input("What is the price?: "))
    quantity = int(input("How many would you like?: "))
    total = price * quantity
    print(f"You have bought {quantity} x {item}/s")
    print(f"Your total is: ${round(total, 2)}")

    • @hydershahzaibahmed2539
      @hydershahzaibahmed2539 ปีที่แล้ว

      @@Love.Stefan What do you mean your disappointed, this is such an amazing series, what do you mean by that?

    • @ilyjesusable
      @ilyjesusable ปีที่แล้ว

      Today I went to a beautiful coffee shop
      In a bathroom I saw grimes
      Grimes was green and filing for divorce-ing
      I was sus

    • @vanessa1707
      @vanessa1707 4 หลายเดือนก่อน

      Thanks for making these tutorials fun. Here is mine inspired by a popular meme: noun1 = input("Enter a noun: ")
      noun2 = input("Enter a noun2: ")
      verb = input("Enter a verb: ")
      noun3 = input("Enter a noun3: ")
      adjective1 = input("Enter an adjective1: ")
      adjective2 = input("Enter an adjective: ")
      print(f"I went to the {noun1} show")
      print(f"In the show, {noun1} gave everyone a {noun2}")
      print(f"{noun1} was {verb}ing")
      print(f"You get a {noun3} and you get a {noun3}! I was {adjective1} and {adjective2}") and here are my results : Enter a noun: Oprah
      Enter a noun2: Gift
      Enter a verb: Screech
      Enter a noun3: Car
      Enter an adjective1: Shocked
      Enter an adjective2: Amazed
      I went to the Oprah show
      In the show, Oprah gave everyone a Gift
      Oprah was Screeching
      You get a Car and you get a Car! I was Shocked and Amazed
      Process finished with exit code 0😆

    • @whoiszaid9657
      @whoiszaid9657 4 หลายเดือนก่อน +1

      I went to a bank that had {5000} in their lockers
      I went straight to the lobby where there were the {4} standing
      I went their for depositing my {3500} in my savings account
      I stood their for {3.0} Still no response
      my {'bad'} was not so good

  • @Tyrese-y8v
    @Tyrese-y8v ปีที่แล้ว +25

    verb = input ("Enter a verb: ")
    noun • input("Enter a noun: ")
    adjective • input("Enter an adjective: ")
    noun2 • input("Enter another noun: ")
    print(f"Today I (verb} with a {noun} during a {adjective] football game")
    print(f"I enjoyed it just like I enjoyed my {noun2}.
    Output:
    Today I fishing with a tree during a hairy football game
    I enjoyed it just like I enjoyed my bed
    I screwed up my grammar, but thanks for your tutorials Bro Code!!

  • @joanneosborne2428
    @joanneosborne2428 9 หลายเดือนก่อน +10

    I appreciate your training approach; it's clear, enjoyable, and straightforward. Thank you for keeping it simple and to the point.

    • @zubair1424
      @zubair1424 2 หลายเดือนก่อน

      have you been able to learn python from these videos? wanted to check before I start.

    • @washingtonm654
      @washingtonm654 หลายเดือนก่อน

      @@zubair1424 yh bro really helped me in my computer class .good videos from bro code

  • @VelixRoblox
    @VelixRoblox 2 ปีที่แล้ว +37

    noun1 = input("Enter a noun: ")
    noun2 = input("Enter another noun: ")
    adjective = input("Enter an adjective: ")
    verb = input("Enter a verb: ")
    print(f"Once there lived a {noun1}.")
    print(f"While walking on the road, he/she saw a {adjective} {noun2},")
    print(f"but the {noun2} was not {adjective}, it {verb}ed on {noun1}")
    INPUT:
    Enter a noun: Velix
    Enter another noun: Hen
    Enter an adjective: beautiful
    Enter a verb: jump
    OUTPUT:
    Once there lived a Velix.
    While walking on the road, he/she saw a beautiful Hen,
    but the Hen was not beautiful, it jumped on Velix.
    Bro Code! I luv the series so much! It's easy to understand and I Luv it!

  • @felinezero
    @felinezero 2 ปีที่แล้ว +50

    Bro here teaching English too now 🤣
    Love you Bro! 😸

  • @FamilyFriendly-z4s
    @FamilyFriendly-z4s 5 หลายเดือนก่อน +2

    this is the one i did for the area exercise-->
    length=int(input("enter an length for rectanlgle:"))
    widht=int(input("enter an widht for rectanlgle:"))
    area = widht*length
    print(f"so the area of the rectangle is according to the measurements u have give is {area}")
    thanks for taking a look at this whoever you are
    🥰hope u have great day!

  • @Cyberbully34
    @Cyberbully34 ปีที่แล้ว +19

    "Mark Zuckerberg was berserk and screeching" bro 💀

  • @francisjacquart9618
    @francisjacquart9618 ปีที่แล้ว +6

    THANKS A LOT FOR THESE EXPLANATIONS AND EXERCISES...THEY ARE DEAD EASY TO UNDERSTAND AND I LOVE THE VIDEOS! LOVE AND TAKE CARE!

  • @Pgertse7
    @Pgertse7 ปีที่แล้ว +1

    Your video is much easier to understand, im learning python to automate things in excell it takes alot of work.

  • @OneBorko
    @OneBorko 2 ปีที่แล้ว +45

    I love your voice

  • @Kingheart5
    @Kingheart5 10 หลายเดือนก่อน

    Mad Libs Game exercise
    adjective1 = str(input("Please enter an adjective"))
    noun = str(input("Please enter a noun "))
    verb = str(input("Please enter a verb "))
    adverb = str(input("Please enter an adverb "))
    emotion = str(input("Please enter an emotion "))
    print(f"Yesterday I went to a {adjective1} city")
    print(f"There was a {noun}")
    print(f"The {noun} was {verb} {adverb}")
    print(f"I was very {emotion}")
    Please enter a noun Lion
    Please enter a verb Running
    Please enter an adverb Aggressively
    Please enter an emotion Scared
    Yesterday I went to a Confusing city
    There was a Lion
    The Lion was Running Aggressively
    I was very Scared
    Thanks for the tutorial!

  • @stevechoatie249
    @stevechoatie249 2 หลายเดือนก่อน +1

    I'm really enjoying your tutorials! Thank you so much!! As I was trying to follow along with some of the examples, I was coding in Pycharm. It occurred to me when watching you code, you apparently know a lot of shortcuts in Pycharm that I don't. I searched your videos to see if you had done one on using Pycharm but I didn't see one. Is there any chance you might do a video on using Pycharm effectively?

  • @zephyrgaming9798
    @zephyrgaming9798 2 ปีที่แล้ว +9

    Sir you never disappoint with your content

  • @VarunNigudkar
    @VarunNigudkar 7 หลายเดือนก่อน +1

    noun1 = input("Enter noun: ")
    verb1 = input("Enter verb: ")
    noun2 = input("Enter noun: ")
    verb2 = input("Enter verb: ")
    device = input("Enter device name: ")
    print(f"Today {noun1} uploaded his video")
    print(f"I was {verb1}ing Po*n")
    print(f"My friend {noun2} told me about {noun1}'s video")
    print(f"I {verb2} my {device} and searched it up")
    RESULT
    Today Brocode uploaded his video
    I was Watching Po*n
    My friend Stepsis told me about Brocode's video
    I Gropped my Sis phone and searched it up

  • @bumbelul
    @bumbelul หลายเดือนก่อน

    that's awesome man. crazy fun . the only thing that i hate is the fact that as a non english speaker i tend to confuse the variables and it pisses me off. anytime you say something like "ahhh we'll just add int or float " i'm going crazy trying to remember which one was which and what does it actually mean 🤣🤣🤣 btw first day in this thing. i wanted to peak a bit to see what's this all about, i ended up watching your videos and trying stuff for the past 3 hours.
    you're an amazing teacher :D

  • @Wills-ig3ek
    @Wills-ig3ek ปีที่แล้ว

    This was probably the most vulnerable exercise you made. Anyways, on with the code.
    Person = input("Who do you want your person to be?: ")
    toy1 = input("Which toy does your person want to play with?: ")
    toy2 = input("Which toy does your person also want to play with?: ")
    print(f"Once upon a time, there was a boy named {Person}.")
    print(f"He liked to play with {toy1} and fiddle with {toy2}")
    print(f"All was going well for him, until..")
    Who do you want your person to be?: Ballsack
    Which toy does your person want to play with?: Water Bottles
    Which toy does your person also want to play with?: Call of Duty CD
    Once upon a time, there was a boy named Ballsack.
    He liked to play with Water Bottles and fiddle with Call of Duty CD
    All was going well for him, until..

    • @zubair1424
      @zubair1424 2 หลายเดือนก่อน

      have you been able to learn python from these videos? wanted to check before I start.

  • @ovskihouse5271
    @ovskihouse5271 ปีที่แล้ว +1

    Thanks alot that's important for me to begin With

  • @paradoxine6287
    @paradoxine6287 ปีที่แล้ว +3

    I improvised this shopping cart with the if and else statement.
    item = input("Enter the product you want to purchase:")
    price = float(input("Enter the price of the said product:"))
    quantity = int(input("Enter the number of products you wish to purchase:"))
    total = price * quantity
    print(f"You are about to purchase {quantity} x{item}/s.")
    print(f"Thereby, your total is {total} pesos.")
    print("Continue to purchase? Type 'yes'")
    answer = input("Please type your answer:")
    yes = True
    if answer := yes:
    print(f"You have successfully purchased {quantity} {item}/s. Thank you for your patronage at Yo Mama's store!")
    else:
    print("Purchase cancelled.")
    Thanks!

  • @mugiwara_shank
    @mugiwara_shank 2 หลายเดือนก่อน +1

    city= input("Enter a city name- ")
    adjective1 = input("Enter a adjective-")
    noun1 = input("Enter a noun-")
    noun2 = input("Enter a noun-")
    ajecttive2 = input("Enter a adjective-")
    print(f"Today I went to a {city} park")
    print(f"The park was {adjective1}")
    print(f"Then I saw a {noun1} playing with {noun2}")
    print(f"Then I also join {noun1} and start playing with their {noun2}")
    print(f"it was {ajecttive2} to play with their {noun2}")

  • @sceerlike
    @sceerlike ปีที่แล้ว

    day = input("What day is it today?: ")
    time = input("Enter your meeting time schedule: ")
    place = input("Enter your school name: ")
    game = "Roblox"
    name = input("What is your name?: ")
    age = int(input("Enter your current age: "))
    age = age - 2
    print(f"Your name is {name}")
    print(f"You were {age} years old")
    print(f"Today is {day}")
    print(f"We have an urgent meeting with our friends on {time} at {place}")
    print(f"But I have work at home playing {game}")
    output:
    Your name is sceerlike
    You were 15 years old
    Today is friday
    We have an urgent meeting with our friends on 10:00 AM at kabupaten
    But I have work at home playing Roblox

  • @MonishB-s1b
    @MonishB-s1b ปีที่แล้ว

    adjective = input("enter an adjective: ")
    noun = input("enter a noun: ")
    noun = input("enter a noun: ")
    adjective = input("enter an adjective: ")
    verb = input("enter a verb: ")
    adjective = input("enter an adjective: ")
    print (f"at my college our principle showed us {adjective} audition" )
    print (f"at audition we all met {noun}")
    print (f" {noun}'s music were {adjective} and {verb}")
    print (f"by looking at him we were {adjective}")

  • @elma4980
    @elma4980 9 หลายเดือนก่อน

    This is what I put :D
    temp = input("Enter a word for hot weather:")
    cold_item = input("Enter Cold thing: ")
    name = input("Put some random name: ")
    number = input("Amount you want: ")
    number = float(number)
    print(f"Hello It's a {temp} day today")
    print(f"I hope my {cold_item} doesn't melt")
    print(f"Its for {name}")
    print(f"I bought {number} {cold_item} for everyone")

  • @Guttaaaz
    @Guttaaaz 7 หลายเดือนก่อน

    1Mad Libs
    noun1 = input("Enter a noun: ")
    noun2 = input("Enter a noun: ")
    verb = input("Enter a verb: ")
    adjective = input("Enter an adjective: ")
    print(f"Today I went to {noun1}")
    print(f"I met {noun2}")
    print(f"I was {verb}ing with {noun2} there")
    print(f"It was a {adjective} day")

  • @AlymbekUrozmatov
    @AlymbekUrozmatov 6 หลายเดือนก่อน

    adjective1 = input ("Enter an adjective1 ")
    noun = input ("Enter a noun ")
    adjective2 = input ("Enter an adjective2 ")
    adjective3 = input ("Enter an adjective3 ")
    verb = input ("Enter a verb ")
    print(f"Today I went to {adjective1} school .")
    print(f"At the entrance, I saw {noun}.")
    print(f"{noun} was {adjective2} and {verb}ing.")
    print(f"I was {adjective3}!")

  • @imperiodosgameplays321
    @imperiodosgameplays321 ปีที่แล้ว +1

    adjective1 = input('Enter an adjective: ')
    noun = input('Enter a noun: ')
    adjective2 = input('Enter a second adjective: ')
    verb = input('Enter a verb: ')
    adjective3 = input('Enter a third adjective: ')
    print(f"Yesterday I went to an {adjective1} house.")
    print(f"In a rom, I saw {noun}.")
    print(f"{noun} was {adjective2} and {verb}ing.")
    print(f"I was {adjective3}!")
    Results:
    Yesterday I went to an scary house.
    In a rom, I saw Jason.
    Jason was creepy and hunting.
    I was scared!

  • @FM-fc6uk
    @FM-fc6uk ปีที่แล้ว +1

    INPUT
    --------------------------------------------------------------------
    adjective1 = input('Enter an adjective: ')
    noun = input('Enter a noun: ')
    adjective2 = input('Enter an adjective: ')
    adjective3 = input('Enter an adjective: ')
    print(f'Today i learned how to type user input in python, it was {adjective1}.')
    print(f'now i am tasked to make a story from {noun} teachings.')
    print(f'{noun} teachings was {adjective2}')
    print(f'I learned alot today i was so {adjective3}.')
    OUTPUT
    --------------------------------------------------------------------
    Enter an adjective: cool asf
    Enter a noun: Bro Codes
    Enter an adjective: clear
    Enter an adjective: happy
    Today i learned how to type user input in python, it was cool asf.
    now i am tasked to make a story from Bro Codes teachings.
    Bro Codes teachings was clear
    I learned alot today i was so happy.

  • @nagayamini901
    @nagayamini901 6 หลายเดือนก่อน

    adjective1=input("Enter and adjective :")
    noun=input("Enter a noun:")
    adjective2=input("Enter and adjective :")
    verb=input("Enter a verb:")
    adjective3=input("Enter and adjective :")
    print(f"Today I saw a {adjective1} insect.")
    print(f"In lunch , I had {noun}")
    print(f"{noun} was {adjective2} and {verb}ing")
    print(f"I was {adjective3}")
    Today I saw a huge insect.
    In lunch , I had potato fry
    potato fry was crispy and mouth watering
    I was happy
    item=input("What item would you like to buy?")
    price=float(input("what is the price?"))
    quantity=int(input("How many would you like?"))
    total = price * quantity
    print(f"You have bought {quantity} X {item}/s")
    print(f"Your total is:Rs.{round(total, 2)}")

  • @frozenhound_9143
    @frozenhound_9143 ปีที่แล้ว +1

    Im not so good at python but i can handle it , thats why when he started to make ana area calculator i went full on to make a square , rectangle and triagle area calculator this is the code for anyone who wanna try it : #a calculator to measure the area of three shapes
    shape = input(" choose shape : square , rectangle ,
    triangle: ")
    if shape == "square":
    sl = input(" insert side length ")
    aos = int(sl)*int(sl)
    #sl = side length
    #aos = area of square
    print(f"area of square is {aos}cm²")
    elif shape == "rectangle":
    l = input(" insert length ")
    w = input(" insert width ")
    aor = int(l)*int(w)
    #aor = area of rectangle
    #l = length , w= width
    print(f"area of rectangle is {aor}cm²")
    elif shape == "triangle":
    b = input(" insert base length " )
    h = input(" insert hight length ")
    aot = float(0.5) * float(b) * float(h)
    print(f"area of triangle is {aot}cm²")
    #b = base , h = hight
    #aot = area of triangle
    else:
    print(" error,unidentified shape")

  • @SirStupidTheThird
    @SirStupidTheThird 10 หลายเดือนก่อน

    adjective = input("Enter an adjective: ")
    food = input("Enter a kind of food: ")
    persontype = input("Enter a kind of relationship you have with a person: ")
    name = input("Enter a name: ")
    topping = input("Enter a topping you would put on food: ")
    decide = input("Enter 'to' or 'not to': ")
    adjective2 = input("Enter another adjective: ")
    print (f"Today I ate some {adjective} {food}")
    print (f"My {persontype}, {name}, made it for me")
    print (f"I put some {topping} on it")
    print (f"I decided {decide} ask for more due to how {adjective2} it was")
    output:
    Enter an adjective: terrible
    Enter a kind of food: bread
    Enter a kind of relationship you have with a person: enemy
    Enter a name: Blurbenstein
    Enter a topping you would put on food: mayonaise
    Enter 'to' or 'not to': not to
    Enter another adjective: monstrous
    Today I ate some terrible bread
    My enemy, Blurbenstein, made it for me
    I put some mayonnaise on it
    I decided not to ask for more due to how monstrous it was

  • @sarangbhandari7095
    @sarangbhandari7095 2 หลายเดือนก่อน

    Code: adjective1 = input("Enter a adjective: ")
    noun = input("Enter a noun: ")
    adjective2 = input("Enter a adjective: ")
    verb = input("Enter a verb: ")
    adjective3 = input("Enter a adjective: ")
    print(f"Today i went to a {adjective1} mall.")
    print(f"In an place, I saw {noun} ")
    print(f"{noun} was {adjective2} and {verb}ing")
    print(f"I was {adjective3}")
    Output: Today i went to a Big mall.
    In an place, I saw Speed
    Speed was wild and jumping
    I was happy

  • @SonuSah-p7x
    @SonuSah-p7x 4 หลายเดือนก่อน

    #2.AREA CALCULATOR
    length = int(input("Enter the length of a rectangle: "))
    width = int(input("Enter the width of a rectangle: "))
    height = int(input("Enter the height of a rectangle: "))
    area = length * width
    volume = length * width * height
    print(f"Area of rectangle is {area}cm^2")
    print(f"Volume of rectangle is {volume}cm^3")
    Output:
    Enter the length of a rectangle: 5
    Enter the width of a rectangle: 8
    Enter the height of a rectangle: 7
    Area of rectangle is 40cm^2
    Volume of rectangle is 280cm^3

  • @Guttaaaz
    @Guttaaaz 7 หลายเดือนก่อน

    2Cal Area
    width = float(input("Enter the width of a rectangle: "))
    height = float(input("Enter the height of a rectangle: "))
    length = float(input("Enter the length of a rectangle: "))
    area = width * height
    valume = length * width * height
    print(f"Area of the rectangle is {area} cm^2")
    print(f"Valume of the rectangle is {valume} cm^3")

  • @Poem_AI
    @Poem_AI ปีที่แล้ว +2

    adjective1 = input("Inter Adjective1: ")
    noun = input("Enter a noun: ")
    adjective2 = input("Enter adjective2: ")
    verb = input("Enter a verb: ")
    adverb = input("Inter Adverbs: ")
    print(f"Yesterday I went to a {adjective1} Zoo")
    print(f"Inside the Zoo I saw a {noun}")
    print(f"The {noun} was verry {adjective2}")
    print(f"and it was {verb}ing")
    print(f"I was looking at it {adverb}")
    output
    Yesterday I went to a Giant Zoo
    Inside the Zoo I saw a Walia
    The Walia was very Small
    and it was Grazing
    I was looking at it amazingly

    • @zubair1424
      @zubair1424 2 หลายเดือนก่อน

      have you been able to learn python from these videos? wanted to check before I start.

  • @الغابر00
    @الغابر00 5 หลายเดือนก่อน

    adjective = input("Enter an adjictive: ")
    noun = input("Eenter a noun: ")
    adjective2 = input("enter an adjctive: ")
    verb = input("enter a verb: ")
    adjective3 = input("Enter an adjictive: ")
    print(f"in a dark night i was walking alone and it was{adjective} night")
    print(f"in a melancholy, i saw {noun}")
    print(f"{noun} was {adjective2} and {verb}ing")
    print(f"i was {adjective3}")

  • @nightlessgamer
    @nightlessgamer 10 หลายเดือนก่อน

    adjective = input("Enter an adjective: ")
    noun = input("Enter a noun: ")
    verb = input("Enter a verb: ")

    print(f"i was drinking a {adjective} coffee")
    print(f"last year i visited {noun}")
    print(f"{noun} was such a great place to {verb}")
    i was drinking a cold coffee
    last year i visited japan
    japan was such a great place to sleep

  • @晉晟
    @晉晟 หลายเดือนก่อน

    ========================================
    EXERCISE 2 AREA CALC
    ========================================
    length, width, height = \
    [float(x) for x in input("Enter the length, width and height of a rectangle: ").split()]
    volume = length * width * height
    print(f"The volume is: {volume:.3f}cm³")
    Intput:
    5.6 7 8.09
    Output:
    The volume is: 317.128cm³

  • @kushalchakraborty9423
    @kushalchakraborty9423 4 หลายเดือนก่อน

    item =input("the name of item you want to buy? ")
    price =float(input("price of the item you want to buy? "))
    quantity =int(input("how many item you want to buy? "))
    total = price * quantity
    print(f"the total payable amount for buying {quantity} {item} is {total},rupess ")

  • @РичардПагава
    @РичардПагава ปีที่แล้ว

    lenght = float(input("whats lenght?: "))
    width = float(input("whats width?: "))
    heigh = float(input("heigh is?: "))
    volume = lenght * width * heigh
    print(f"volume is {volume}cm")

  • @sunny34504
    @sunny34504 ปีที่แล้ว +2

    input("Enter your name")
    obj = input("Enter your object")
    adjective = input("Enter your adjective")
    feel = input("Enter your feeling")
    print(f"{name} loves{obj}s a lot!")
    print(f"she lives a true Love story with {obj}s")
    print(f"{name} become so{adjective} when someone remmember her in {obj}")
    print(f"she is a{feel} girl")
    OUTPUT:
    Enter your name lala
    Enter your object burger
    Enter your adjective hungry
    Enter your feeling funny
    lala loves burgers a lot!
    she lives a true Love story with burgers
    lala become so hungry when someone remmember her in burger
    she is a funny girl😄😄

  • @netkid5460
    @netkid5460 9 หลายเดือนก่อน

    Now i misunderstood how madlibs worked and did this code before watching your video solution but here we go!
    username = input("Hello traveler, tell me your name: ")
    print(f"So {username}, you decided to to come to this...")
    adj1 = input("give me an adjective describing this day: ")
    print(f"yes! you came on this {adj1} day to meet.. who again?")
    enemy1 = input("name of your enemy: ")
    enemyage = int(input("enemies age: "))
    userage = int(input("your age: "))
    print(f"thats right! {enemy1} !")
    if (enemyage > userage):
    print(f"they are {enemyage - userage} years older than you")
    else: print(f"they are {userage - enemyage} years younger than you!")

  • @idk_heitor
    @idk_heitor 6 หลายเดือนก่อน

    adjective1 = input("Enter a adjective: ")
    professions = input("Enter a profission: ")
    noun = input("Enter a noun: ")
    verb = input("Enter a verb: ")
    object1 = input("Enter a object: ")
    object2 = input("Enter a another object: ")
    feeling = input("Enter a feeling: ")
    print(f"Today i went a {adjective1} a {professions}'s school. In there i saw {noun} {verb}ing with a {object1} and a {object2}. That was {feeling}. ")

  • @vihanga_induwara__00
    @vihanga_induwara__00 8 หลายเดือนก่อน

    width = float(input("what is the width : "))
    length = float(input("what is the width : "))
    hegith = float(input("what is the hegith : "))
    area = width * length
    volume = width * length * hegith
    print(f"rectangle area is a {area}cm^2")
    print(f"rectangle volume is a {volume}cm^3")

  • @rugvediwankhede1851
    @rugvediwankhede1851 หลายเดือนก่อน

    restroName = input("Enter your favortie restaurant: ")
    food = input("How does the food tastes there?: ")
    dessert = input("Enter your favorite dessert: ")
    moviename = input("Enter your favorite Movie name: ")
    mood = input("How are you feeling now?: ")

  • @mohandakliamara
    @mohandakliamara 3 หลายเดือนก่อน +1

    print(" You're a LEGEND bro ⚡! ")

  • @Vertig_Pro
    @Vertig_Pro 2 หลายเดือนก่อน

    item = input("What would you like to buy?: ")
    price = float(input("How much is it?: "))
    quantity = int(input("How many would you like to buy?: "))
    total = price * quantity
    print("----------------------------------------------------")
    print(f"For {quantity} {item}'s each costing {price} each")
    print(f"Your Total: ${total:.2f}")

  • @AryanSingh-tw4qo
    @AryanSingh-tw4qo 2 หลายเดือนก่อน

    adjective = input("enter an adjective: ")
    noun = input("enter a noun: ")
    adjective2 = input("enter an adjective: ")
    verb = input("enter an verb: ")
    adjective3 = input("enter an adjective: ")
    print(f"today i went to an {adjective} zoo.")
    print(f"in an exhibit i saw {noun}")
    print(f"{noun} was {adjective2} and {verb}ing")
    print(f"i was {adjective3}")

  • @Momo-iq6uu
    @Momo-iq6uu 2 หลายเดือนก่อน

    I was about to go to the grocery store, this shopping program might come in handy!

  • @jhassee
    @jhassee 2 ปีที่แล้ว +3

    #accepting user input
    noun = input("Please enter a noun:
    ")
    adjective = input("Please enter an adjective:
    ")
    verb = input(f"Please enter a verb:
    ")
    print(f"""
    Today I went to a {noun},
    I saw a {adjective}, horse,
    he was {verb} fast!
    """)

  • @hamzazad5258
    @hamzazad5258 7 หลายเดือนก่อน

    this is the best tutorial out there

  • @PeytonRagle
    @PeytonRagle 11 หลายเดือนก่อน

    adjective1 = input("Enter a adjective: ")
    noun = input("Enter a noun: ")
    adjective2 = input("Enter a adjective: ")
    verb = input("Enter a verb: ")
    adjective3 = input("Enter a adjective: ")
    print(f"Today i went to a {adjective1} walmart.")
    print(f"I went to the restroom and saw {noun}.")
    print(f"the {noun} was {adjective2} and it was {verb}ing.")
    print(f"I was {adjective3}")

  • @HsuMonMonThant
    @HsuMonMonThant ปีที่แล้ว

    What a good explanation. Thank you so much bro.

  • @salvagelife308
    @salvagelife308 4 หลายเดือนก่อน

    You make Python easy. Love you Bro haha

  • @dawafflegangster
    @dawafflegangster 2 หลายเดือนก่อน

    Today I am learning coding from the dopest bro.
    While watching youtube I saw, st.louis
    st.louis was running and pooping
    I was thirsty

  • @andersonkemboi
    @andersonkemboi 16 วันที่ผ่านมา

    Length = input("Enter Length")
    Width = input("Enter Width")
    Length = int(Length)
    Width = int(Width)
    Area = Length * Width
    print(Area)

  • @azmibinmuhammad7164
    @azmibinmuhammad7164 2 ปีที่แล้ว

    Awesome tutorial... thanks sir

  • @MOMI-h7m
    @MOMI-h7m หลายเดือนก่อน +1

    loved it alot bro code 🚀🦍

  • @TheDevoted...77
    @TheDevoted...77 หลายเดือนก่อน

    Enter an adjective: big
    Enter a noun: people
    Enter a noun: monkey
    Enter an adjective: small
    Enter a verb: speaking
    Enter a verb: talking
    Enter an adjective: big
    Enter a noun: poop
    Today I saw to a big people.
    In a people, I saw a monkey.
    monkey was small and speakinging.
    I was big! but I talking. So i went back poop
    I made this program and my brother gave input........ this is the output 🤣😅. Thank you Bro Code! 🙌✨

  • @iskandardz
    @iskandardz 7 หลายเดือนก่อน +1

    adj1=input("enter adj:")
    noun1=input('enter noun1:')
    noun2=input("enter noun2:")
    adj2=input('ener2nd adj:')
    print(f"today i went to the a {adj1} place")
    print(f"i meet my frind{noun1} ")
    print(f'{noun2} was screaming')
    print(f'i was {adj2}')

  • @mateo1481
    @mateo1481 2 ปีที่แล้ว +4

    I'm so grateful with you, thanks or these lessons man!
    By other side i want to check if im understanding: the reason why the rectangle exercise throws error in the first try is because the user data is str and we need to cast it into float/int?

    • @loleder
      @loleder ปีที่แล้ว

      That's right!

  • @bhaskarnath5319
    @bhaskarnath5319 5 หลายเดือนก่อน +1

    tit = "mad libs"
    print(tit.upper())
    name1 = input("ENTER ML NAME:")
    place = input("ENTER A PLACE:")
    pl2 = input("ENTER ANOTHER PLACE:")
    food = input("ENTER YOUR FAV FOOD:")
    name2 = input("ENTER NAME:")
    mythicalcreature = input("ENTER YOUR FAV MYTHICAL CREATURE:")
    adj = input("enter an adj:")
    verb = input("ENTER A VERB:")
    print(f"{name1} wakes up in {place}.")
    print(f'He goes to the {pl2} and eats {food} for breakfast.')
    print(f"{name2} comes and tells him that he is a {mythicalcreature}!")
    print(f"{name1} goes {adj} and starts {verb}ing!!!")
    print("_"*10)
    print('THANKS FOR PLAYING MAD LIBS :)')

  • @Afghanistanfutsalfans
    @Afghanistanfutsalfans ปีที่แล้ว +1

    Love the way you explain! so energetic! Thank you!

  • @ishruqahmed295
    @ishruqahmed295 6 หลายเดือนก่อน

    noun = input("enter a noun: ")
    verb1 = input("enter a verb: ")
    verb2 = input("enter verb2: ")
    verb3 = input("enter verb3: ")
    verb4 = input("enter verb4: ")
    adjective = input("enter an adjective: ")
    print(f'today i went to a {noun}.')
    print(f"in there, I {verb1} many rides. ")
    print(f"I also {verb2} and {verb3} a ice cream.")
    print(f"I {verb4} a lot of {adjective}.")
    enter a noun: park
    enter a verb: rode
    enter verb2: bought
    enter verb3: ate
    enter verb4: had
    enter an adjective: fun
    today i went to a park.
    in there, I rode many rides.
    I also bought and ate a ice cream.
    I had a lot of fun.

  • @kszoknyik
    @kszoknyik ปีที่แล้ว

    once again, an excellent video. thank u!

  • @AestheticBlue13
    @AestheticBlue13 3 หลายเดือนก่อน

    adjective = input("Enter an adjective: ")
    noun = input("Enter a noun: ")
    verb1 = input("Enter a verb: ")
    verb2 = input("Enter a verb: ")
    verb3 = input("Enter a verb: ")
    print(f"Once there was a {adjective} {noun}.")
    print(f"The {adjective} {noun} was {verb1} with his eyes closed.")
    print(f"The {adjective} {noun} {verb2} a stone.")
    print(f"He {verb3} face-flat on the ground.")
    INPUT
    Enter an adjective: clumsy
    Enter a noun: dummy
    Enter a verb: screeching
    Enter a verb: threw
    Enter a verb: crashed
    OUTPUT
    Once there was a clumsy dummy.
    The clumsy dummy was screeching with his eyes closed.
    The clumsy dummy threw a stone.
    He crashed face-flat on the ground.

  • @mohammadanas4340
    @mohammadanas4340 5 หลายเดือนก่อน

    pizza_price = 4.99
    coke_price = 2.99
    juice_price = 3.0
    item = input("What item would u like to buy?: ")
    if item == "pizza":
    total = pizza_price
    elif item == "coke":
    total = coke_price
    elif item == "juice":
    total = juice_price
    else:
    print("sorry we dont have that item")
    exit()
    quantity = float(input("How many would u like?: "))
    total_cost = float(total) * quantity
    print(f"you have bought {quantity} {item}s")
    print(f"your total is: ${round(total_cost, 2)}")
    i did some changes on my own to practice some concept :)

  • @closettherapy6948
    @closettherapy6948 7 หลายเดือนก่อน

    Bro's always cooking ‼🗣💻

  • @cozycubix
    @cozycubix ปีที่แล้ว

    YOU made it EASY : Thanks

  • @hansdevice3285
    @hansdevice3285 8 หลายเดือนก่อน

    One problem I noticed with type casting your inputs as a float or an int like this:
    x = float(input("Prompt: "))
    is that it breaks if you input a letter, or if you just hit enter.
    I found that doing something like this:
    x = input("Prompt: ")
    while not x.isnumeric():
    x = input("Prompt and explanation of input requirements: ")
    x = float(x)
    both solves this problem and explains to the user what they did wrong.
    (x.isnumeric is explained in BroCode's string methods video)
    If someone knows a more compact way to protect against incorrect inputs, please let me know.

  • @Marvin-c3d
    @Marvin-c3d 4 หลายเดือนก่อน

    noun1 = input("Enter a noun: ")
    noun2 = input("Enter a second noun: ")
    noun3 = input("Enter a third noun: ")
    verb = input("Enter a verb in infinitive: ")
    adjective = input("Enter an adjective: ")
    print(f"When i came home, i saw {noun1} and {noun2} in the living room")
    print(f"They surprised me with a {noun3}")
    print(f"I was {verb}ing and i was {adjective}")
    Enter a noun: my friend
    Enter a second noun: my girlfriend
    Enter a third noun: cat
    Enter a verb in infinitive: screaming
    Enter an adjective: happy
    When i came home, i saw my friend and my girlfriend in the living room
    They surprised me with a cat
    I was screaminging and i was happy
    It's crazy how it worked

  • @WINDOWSUSER-q4s
    @WINDOWSUSER-q4s 11 หลายเดือนก่อน

    NICELY DONE...❤

  • @makoblox
    @makoblox ปีที่แล้ว

    good content keep it up

  • @sukesh2006-d
    @sukesh2006-d ปีที่แล้ว

    adjective1 = input("Enter an adjective: ")
    noun = input("Enter a noun: ")
    adjective2 = input("Enter an adjective: ")
    verb = input("Enter a verb: ")
    adjective3 = input("Enter an adjective: ")
    print(f"Today I went to {adjective1} zoo.")
    print(f"In an exhibit, I saw {noun}")
    print(f"{noun} was {adjective2} and {verb}ing")
    print(f"I was {adjective3}")
    output:
    Today I went to sus zoo.
    In an exhibit, I saw Sukesh
    Sukesh was fun and runing
    I was fast

  • @MartinsAfoafo-xy5bh
    @MartinsAfoafo-xy5bh 4 หลายเดือนก่อน

    adjective1 = input("Enter an adjective: ")
    noun = input("Enter a noun: ")
    adjective2 = input("Enter an adjective: ")
    verb = input("Enter a verb: ")
    adjective3 = input("Enter an adjective: ")
    print(f"Today i visited the {adjective1} aso rock villa")
    print(f"I saw {noun}")
    print(f"He was such a {adjective2} man")
    print(f"He was so {verb} to see me")
    print(f"He gave me a very {adjective3} car before leaving the villa")
    Output:
    Today i visited the Great aso rock villa
    I saw President Tinubu
    He was such a Kind man
    He was so Happy to see me
    He gave me a very Beautiful car before leaving the villa

  • @rumahmayatmortuary8110
    @rumahmayatmortuary8110 หลายเดือนก่อน

    adjective1 = input("Enter an adjective: ")
    noun = input("Enter a noun: ")
    adjective2 = input("Enter an adjective: ")
    adjective3 = input("Enter an adjective: ")
    print(f"Today I went to a {adjective1} party.")
    print(f"In the living room, i saw {noun}.")
    print(f"{noun} was {adjective2} and nice.")
    print(f"I was {adjective3}!")
    length = float(input("Enter the length: "))
    width = float(input("Enter the width: "))
    height = float(input("Enter the height: "))
    volume= length * width
    print(f"The volume is: {volume}cm^3")
    item = input("What item would you like to buy?: ")
    price = float(input("What is the price?: "))
    quantity = int(input("How many would you like?: "))
    total = price * quantity
    print(f"You bought {quantity} x {item}/s")
    print(f"Your total is: ${round(total, 2)}")

  • @MonishB-s1b
    @MonishB-s1b ปีที่แล้ว

    #madh libs 1. adjective1,2,3= wonderful, suspecious, amazed
    2.noun= snow leopard
    3.verb=amazing

  • @nirukadlur384
    @nirukadlur384 5 หลายเดือนก่อน

    #Mad libs
    adjective = input("Enter the adjective:")
    noun = input("Enter the noun:")
    verb = input("Enter the verb:")
    print(f"Lionel Messi is the {adjective}.")
    print(f"Lionel Messi is born in {noun}.")
    print(f"Lionel Messi now {verb} in the MLS.")

  • @abdulhannan-18
    @abdulhannan-18 ปีที่แล้ว

    item = input("Enter the item: ")
    quantity = int(input("Enter the quantity: "))
    price = float(input("Enter the price: $"))
    total = price * quantity
    print(f"You bought {quantity} x {item}/s")
    print(f"Your total is: ${total}")
    Enter the item: Tuc
    Enter the quantity: 2
    Enter the price: $40
    You bought 2 x Tuc/s
    Your total is: $80.0

  • @abdulsami4607
    @abdulsami4607 10 หลายเดือนก่อน

    yesterday was amazing
    met a few new friends
    we were all chilling
    well all was awesome

  • @Ігорка-к8е
    @Ігорка-к8е ปีที่แล้ว +1

    this feeling, when in 4 free utube videos u found out more useful features, than in 40$ course...

  • @user-ace96plays
    @user-ace96plays 11 หลายเดือนก่อน +1

    NICELY DONE BRO...❤4/106

  • @abdulhannan-18
    @abdulhannan-18 ปีที่แล้ว

    adjective1 = input("Enter an adjective: ")
    noun1 = input("Enter a noun: ")
    adjective2 = input("Enter an adjective: ")
    verb1 = input("Enter a verb: ")
    print(f"Today I went to a {adjective1} university.")
    print(f"In the exhibition, I saw {noun1}.")
    print(f"Upon seeing {noun1}, I was very {adjective2}.")
    print(f"{noun1} was {verb1}ing.")
    Enter an adjective: goood
    Enter a noun: Abdul
    Enter an adjective: excited
    Enter a verb: study
    Today I went to a goood university.
    In the exhibition, I saw Abdul.
    Upon seeing Abdul, I was very excited.
    Abdul was studying.

  • @FamilyFriendly-z4s
    @FamilyFriendly-z4s 5 หลายเดือนก่อน

    this is what i did --->
    print("MAD LIBS GAME!!!!!!")
    adjective = input("enter an adjective:")
    verb = input("enter an verb:")
    verb2 = input("enter an verb:")
    print("i went to a "+adjective+" zoo")
    print("i saw an bird "+verb)
    print("i also saw an ostrich "+verb2+" too")

  • @TypicalVole2437
    @TypicalVole2437 ปีที่แล้ว

    I learned this just now thanks, onto the next video!

  • @wmstram1
    @wmstram1 ปีที่แล้ว

    Watched it. Liked it.

  • @SonuSah-p7x
    @SonuSah-p7x 4 หลายเดือนก่อน

    #1.MAD LIBS
    noun = input("Enter a noun: ")
    adjective = input("Enter a adjective: ")
    adjective2 = input("Enter a adjective: ")
    adjective3 = input("Enter a adjective: ")
    verb = input("Enter a verb: ")
    noun2 = input("Enter a noun: ")
    print(f"Today I ate {noun}")
    print(f"It was very {adjective}")
    print(f"I would {adjective2} to eat more dishes like this")
    print(f"It was so {adjective3} that I {verb}ed the whole {noun2}")
    Output:
    Enter a noun: meat
    Enter a adjective: tasty
    Enter a adjective: die
    Enter a adjective: delicious
    Enter a verb: clean
    Enter a noun: plate
    Today I ate meat
    It was very tasty
    I would die to eat more dishes like this
    It was so delicious that I cleaned the whole plate

  • @SonuSah-p7x
    @SonuSah-p7x 4 หลายเดือนก่อน

    #3.SHOPPING CART
    item = input("What item would you like to buy?: ")
    price = float(input("What is the price?: "))
    quantity = int(input("How many would you like?: "))
    total = price * quantity
    print(f"You have bought {quantity} x {item}/s")
    print(f"Your total is ₹{round(total, 2)}")
    Output:
    What item would you like to buy?: sweet
    What is the price?: 9.44
    How many would you like?: 14
    You have bought 14 x sweet/s
    Your total is ₹132.16

  • @Wolf.life.13
    @Wolf.life.13 7 หลายเดือนก่อน

    What item would you like to buy?: solana
    What is the price?: 184.65
    How many would you like?: 50
    You have bought 50 x solana/s
    Your total is: $9232.5

  • @РичардПагава
    @РичардПагава ปีที่แล้ว

    verb1 = input("who you see in street?: ")
    verb2 = input("he was shoked or calm?: ")
    verb3 = input("you are good releishenship with animel cat?: ")
    print(f"today i go to walk and see {verb1}")
    print(f"i take him to my house he was {verb2}")
    print(f"after 1 month we are {verb3}")

  • @SamWes-xz4zu
    @SamWes-xz4zu 9 หลายเดือนก่อน

    Thank u sir u are instrumental

  • @Thien-LocSeanNgo
    @Thien-LocSeanNgo 2 หลายเดือนก่อน

    item = input("What item would you like to buy?: ")
    price = float(input("What is the price?: "))
    quantity = int(input("How many would you like?: "))
    total = price * quantity
    print(f"You have bought {quantity} x {item}/s")
    print(f"Your total is ${round(total, 2)}.")
    What item would you like to buy?: Hamburger
    What is the price?: 2.99
    How many would you like?: 11
    You have bought 11 x Hamburger/s
    Your total is $32.89.

  • @muniz6180
    @muniz6180 2 ปีที่แล้ว

    Amazing tutorial dude

  • @bayazidahmed2888
    @bayazidahmed2888 26 วันที่ผ่านมา

    Enter an adjective: cute
    Enter an verb: walk
    Enter an adjective: surprised
    Enter an adjective: happy
    Today I went to a private Zoo.
    In an exhibit, I saw a cat
    cat was cute and walking
    I was surprised and feeling happy

  • @vihanga_induwara__00
    @vihanga_induwara__00 8 หลายเดือนก่อน

    adjective1 = input('what is the adjective : ')
    adjective2 = input('what is the adjective : ')
    adjective3 = input('what is the adjective : ')
    adjective4 = input('what is the adjective : ')
    print(f"today is my {adjective1} birthday")
    print(f"I celebreat it {adjective2}")
    print(f"my {adjective3} mom was planed it")
    print(f"that day in {adjective4}")

  • @nerooreo
    @nerooreo ปีที่แล้ว

    noun1 = input("Enter a noun: ")
    adjective1 = input("Enter an adjective: ")
    noun2 = input("Enter a noun: ")
    adjective2 = input("Enter an adjective: ")
    adjective3 = input("Enter an adjective: ")
    print(f"There was a {noun1} today at the store.")
    print(f"His name was {noun2}, and he was darn {adjective1}")
    print(f"And I was {adjective3}")
    INPUT:
    Enter a noun: dog
    Enter an adjective: nice
    Enter a noun: buddy
    Enter an adjective: blue
    Enter an adjective: shocked
    OUTPUT:
    There was a dog today at the store.
    His name was buddy, and he was darn nice
    And I was shocked

  • @basscat8110
    @basscat8110 2 ปีที่แล้ว

    Awesome Bro, keep it up💪

  • @kangyuan9084
    @kangyuan9084 9 หลายเดือนก่อน

    This helps a lot, bro

  • @pwyatt4633
    @pwyatt4633 11 หลายเดือนก่อน

    a = input("say what ever: ")
    b = input("say what ever: ")
    c = input("say what ever: ")
    print(f"today i went to a {a} house")
    print(f"i got somthing stuck in my {b}")
    print(f"then i went on a {c} for fun")
    print(f"the end. ")

  • @Myah_W
    @Myah_W ปีที่แล้ว +1

    Here is mine, it was pretty fun:
    adjective1 = input("Enter an adjective: ")
    adjective2 = input("Enter an adjective: ")
    noun1 = input("Enter a noun: ")
    noun2 = input("Enter a noun: ")
    noun3 = input("Enter a noun: ")
    verb1 = input("Enter a verb: ")
    verb2 = input("Enter a verb: ")
    print(f"Today I had a(n) {adjective1} outing.")
    print(f"I started my day out, shopping for {noun1}.")
    print(f"It turned out that there was a {adjective2} sale on {noun2} and I {verb1} as much as I could.")
    print(f"I then {verb2} at my favorite {noun3} for lunch.")

  • @Devilhunter69
    @Devilhunter69 ปีที่แล้ว

    noun=input("write a noun ")
    adjective1=input("write an adjective ")
    noun2=input("write another noun ")
    print(f"yesterday i will be visiting{noun}")
    print(f"people say he is very{adjective1}")
    print(f"he lives in {noun2}")
    output=
    yesterday i will be visitingthe wok
    people say he is verysussy
    he lives in ohio
    i love python

  • @lookatrobot
    @lookatrobot ปีที่แล้ว

    You're voice is so cool.