Tag: Lpthw Exercise 6

LPTHW - Exercise 6: Strings Text

LPTHW - Exercise 6 More working with strings and text in this exercise. Having looked into string formatting in the last exercise I realised that I was looking into something quite a bit further on in the course than I needed to right now. x = "There are {!a} types of people.".format(10) binary = "binary" do_not = "don't" y = f"Those who know {binary} and those who {do_not}." print(x) print(y) print(f"I said: {x!

Read more...