leahmander Posted June 19, 2019 Share Posted June 19, 2019 The last two examples of the String/ String Format section are displayed incorrectly before you select to run the example. This is how they are displayed: quantity = 3 itemno = 567 price = 49.95 myorder = "I want {} pieces of item {} for {} dollars."print(str.format(quantity, itemno, price)) quantity = 3 itemno = 567 price = 49.95 myorder = "I want to pay {2} dollars for {0} pieces of item {1}."print(str.format(quantity, itemno, price)) This is how they should be displayed: quantity = 3 itemno = 567 price = 49.95 myorder = "I want {} pieces of item {} for {} dollars."print(myorder.format(quantity, itemno, price)) quantity = 3 itemno = 567 price = 49.95 myorder = "I want to pay {2} dollars for {0} pieces of item {1}."print(myorder.format(quantity, itemno, price)) Link to comment Share on other sites More sharing options...
Funce Posted June 19, 2019 Share Posted June 19, 2019 At the bottom of that page you'll be able to find a Report Error button. If you click that and include the details here, you should have a better chance at reaching the developers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now