Python f-strings | String Formatting | Conditions in f-strings | Python Debugging | Advanced Strings

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024

Комментарии • 14

  • @zakthayer9315
    @zakthayer9315 2 года назад +2

    Wtf this video was so well made I didn't realize how small the channel was until I hit the bottom of the comments section in a minute, damn man, thanks so much for extremely high quality tutorial. VERY Helpful!

    • @datagy
      @datagy  2 года назад

      Thank you so much!! That means a lot to me!

  • @TheVikingOfNanotech
    @TheVikingOfNanotech 2 года назад +1

    Right to the point. So very helpful! Thank you.

    • @datagy
      @datagy  2 года назад

      Thanks so much!

  • @abessesmahi4888
    @abessesmahi4888 3 года назад +1

    Thank you so much for your efforts.

    • @datagy
      @datagy  3 года назад

      Thanks for your comment!

  • @gehnasharma5841
    @gehnasharma5841 2 года назад +1

    thanks a lot this video was very helpful!

    • @datagy
      @datagy  2 года назад

      Thanks Gehna! I’m glad it was helpful!

  • @johnbaird5639
    @johnbaird5639 3 года назад +1

    This information helps a lot.

    • @datagy
      @datagy  3 года назад

      I'm really glad!

  • @sandervalentijn6471
    @sandervalentijn6471 2 года назад

    Hi datagy, thanks for this and all your other helpfull videos. They have been very usefull!!
    I try to code along with your videos with the use of my own datafile (which contains info on tennis Grand Slams). Everything worked out great, so now I can do stuff like
    # Use f-strings to loop over dictionaries
    grandslams_info = [{'name': 'Australian Open', 'short': 'AO', 'city': 'Adelaide'},
    {'name': 'Roland Garros', 'short': 'RG', 'city': 'Paris'}]
    for info in grandslams_info:
    print(f"{info.get('name')} is held in {info.get('city')} and is in short the {info.get('short')}")
    and I get:
    Australian Open is held in Adelaide and is in short the AO
    Roland Garros is held in Paris and is in short the RG
    Thanks a lot! Keep making these great videos!

  • @rangabharath4253
    @rangabharath4253 3 года назад +1

    awesome

    • @datagy
      @datagy  3 года назад

      Thanks Ranga!

  • @hafizmuhammadabdullahkhan6005
    @hafizmuhammadabdullahkhan6005 3 года назад

    @datagy need help,
    write a Python function(func4) that takes value of slope(m) and x-intercept(c) and return the equation of
    line(y=mx+c) as \vell as display it on screen. Please note that if slope is negative then x-intercept should be
    positive and if slope is positive then x-intercept should be negative. You can consider O as positive number.
    For example : m=-2 and c=O then equation will be y=-2x