Mar-14-2018, 02:07 PM
(This post was last modified: Mar-14-2018, 02:07 PM by sparkz_alot.)
In Python < 3.6 (such as your 3.5)
This (3.6)
This (3.6)
print(f"Mp3 file for Leviticus is here: {self.BibleIndex['Old Testament']['Leviticus']['mp3']}")Is equivalent to this (<3.6)
print("Mp3 file for Leviticus is here: {}".format(self.BibleIndex['Old Testament']['Leviticus']['mp3']))As Larz points out, in either case each instance of the curly brace represents a variable.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition