Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to Python
#1
Hey all, hope everyone is doing great.  New python coder here.  My question is, what's the difference between the two codes below? When I run it, there doesn't seem to be any difference.  Both codes run. Can someone explain why formatting is needed?  Thanks in advance.

print ("Its fleece was white as {}.".format(snow))
and print ("Its fleece was white as snow")?
Reply


Messages In This Thread
New to Python - by OptimusBri - Jul-04-2017, 07:30 PM
RE: New to Python - by Bass - Jul-04-2017, 08:08 PM
RE: New to Python - by sparkz_alot - Jul-04-2017, 08:09 PM
RE: New to Python - by OptimusBri - Jul-04-2017, 09:09 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020