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

Pyhton 3.4 - Continue

Conversations Ongoing: Valuing Modernization in Early European History

Conversations Ongoing: A Bunch of Amateurs