%s - String Formatting

%s
 
reserves 
a 
place 
for 
the 
variables 
that 
hold 
the 
value 
to 
be 
inserted 
in 
the 
string.
print("String %s " %variable_name)
fruit = "apples"
print("Get me %s." %fruit)

f - String formatting

f-strings
 
are 
another 
way 
to 
use 
variables 
inside 
a 
print 
statement.
You 
can 
start 
the 
print 
command 
with 
an 
f, 
and 
wherever 
{ 
variable 
}
 
brackets 
are 
used, 
the 
value 
of 
the 
variable 
is 
inserted 
there.
print(f"string {variable_name}.")
name = "Zog"
age = 40
print(f"Hello, {name}. You are {age}.")

Input Function

The 
input()
 
function 
allows 
the 
user 
to 
enter 
a 
value 
that 
gets 
stored 
in 
a 
variable.
input("message to be shown in input prompt")
x = input("Enter your name:")
print("Hello, " + x)