Learn Python • #10 User Input • 4 Ways To Get Input From Your User

Поділитися
Вставка
  • Опубліковано 25 вер 2024

КОМЕНТАРІ • 6

  • @supreme4256
    @supreme4256 Рік тому +1

    Your lessons are just excellent contetnwise and teachingwise. 10/10 man. Bring us more soon please. Prayers for you.

    • @pixegami
      @pixegami  Рік тому

      Thanks :) I do plan to do more tutorials and videos like this so please stay tuned!

  • @neroetal
    @neroetal 6 місяців тому

    user_name = input("Enter a name: ")
    #the above is always a string
    # to input a number wrap it into an int
    principle_amount = int(input("Enter the principle amount: "))
    interest_rate = float(input("Enter the interest rate: "))
    investment_period = int(input("Enter the period of investment: "))
    amount=principle_amount * (1+ interest_rate)** investment_period
    print(f"Hi {user_name} the amount invested over {investment_period} will be {amount}")
    excellent easy to learn

  • @blessycheriyan5870
    @blessycheriyan5870 Рік тому

    🎉wow tremendous experiences and after completed for python courses and can you please start on playwright from scratch ?

  • @neroetal
    @neroetal 6 місяців тому

    you just landed us into some complex stuff without introduction : import lol

  • @neroetal
    @neroetal 6 місяців тому

    user_name = input("What is your prefered User name? ")
    age =input("What is your age: ")
    with open("user_info.txt", "w") as f:
    f.write(f"Your user name is {user_name.capitalize()} and age {age}")