SHARE

Hey gang, in this Python 3 tutorial we’ll take a look at some basic string formatting techniques, such as f-strings and the .format() method.

—– COURSE LINKS:
+ Atom editor – https://atom.io/a
+ CMDER – http://cmder.net/
+ PYTHON – http://www.python.org/
+ GitHub Repo – + GitHub Repo – https://github.com/iamshaunjp/python-3-playlist

———————————————————————————————
Other tutorials:

—– NODE.JS TUTORIALS
https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp

—– SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

================== Social Links ==================

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

10 COMMENTS

  1. Hi, Shawn. Loved the tutorial, but I had some issues with Ubuntu. String formatting with f-strings is not supported in Ubuntu 17.04 which uses Python 3.5. However, it is possible to upgrade python3 in Ubuntu. I stumbled across this in my research:

    http://ubuntuhandbook.org/index.php/2017/07/install-python-3-6-1-in-ubuntu-16-04-lts/

    Although this article is a wee bit dated, it still worked flawlessly. I hope the Ubuntu users in your group finds this useful.

    Once again, I thank you for your excellent content. And have a great day.

  2. I like the .format method myself, but the f strings are pretty cool as well. . You can leave out the positional number, in the format. If you are them in a sequence. But, I may try to get used to the new 3.6 F-strings

  3. This whole tutorial went over for me really good until the last example. I'm using Geany on my Raspberry Pi and the last example gives a syntax error which points to the last single quote between the last curly brace and the last parenthesis.

  4. I did not know about f'..' style string formatting. Thanks for showing it. Python is cool We need to learn Flask and /or Django! )) Please, continue with Python !

LEAVE A REPLY

Please enter your comment!
Please enter your name here