Ubuntu/Windows 10 Door Knock Notifier


Python String Formatting

Python String Formatting

Set variable user to string "Alice". Set variable salary to float "200.25".

user = 'Alice'
salary = 200.25

1) C Style String Formatting

In this type of formatting the position of variable inside a string is marked by %X where X is the data type of the …

more ...