Pythonn 3.4 - Formatting Strings %s

The %s symbol is used to identify a string. In the example below the %s symbol will be replaced with the variable specified after the % (modulus).

name = input("who are you?")

print("hello %s" % (name,))


https://stackoverflow.com/questions/997797/what-does-s-mean-in-python

Comments

Popular posts from this blog

Python 3.4 - Caesar Cipher

UML - Use Case Diagram