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

New Ways of Conversing: The Kindle 2 and what I think it means

Huddled Masses Yearning: Teach the Controversy

Conversations Ongoing: A Bunch of Amateurs