Python Forum
[SOLVED] Print an int with a string
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Print an int with a string
#3
>>> score = 0
>>> score += 1
>>> print("Your score was {} out of 5".format(score))
Your score was 1 out of 5
>>>
Reply


Messages In This Thread
[SOLVED] Print an int with a string - by Panda - Jun-09-2018, 12:16 PM
RE: Print an int with a string - by killerrex - Jun-09-2018, 12:45 PM
RE: Print an int with a string - by Larz60+ - Jun-09-2018, 12:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] [BeautifulSoup] Why does it turn inserted string's brackets into </>? Winfried 0 1,560 Sep-03-2022, 11:21 PM
Last Post: Winfried
  [SOLVED] [BeautifulSoup] Turn select() into comma-separated string? Winfried 0 1,135 Aug-19-2022, 08:07 PM
Last Post: Winfried
  Remove a space between a string and variable in print sie 5 1,841 Jul-27-2022, 02:36 PM
Last Post: deanhystad
  Adding string after every 3rd charater [SOLVED] AlphaInc 2 1,304 Jul-11-2022, 09:22 AM
Last Post: ibreeden
  Can you print a string variable to printer hammer 2 1,995 Apr-30-2022, 11:48 PM
Last Post: hammer
  [Solved] How to print a dot leader. BashBedlam 4 1,662 Jan-02-2022, 04:28 PM
Last Post: BashBedlam
Question [SOLVED] Delete specific characters from string lines EnfantNicolas 4 2,268 Oct-21-2021, 11:28 AM
Last Post: EnfantNicolas
  Print first day of the week as string in date format MyerzzD 2 2,061 Sep-29-2021, 06:43 AM
Last Post: MyerzzD
  Replace String in multiple text-files [SOLVED] AlphaInc 5 8,236 Aug-08-2021, 04:59 PM
Last Post: Axel_Erfurt
  Replace String with increasing numer [SOLVED] AlphaInc 13 5,132 Aug-07-2021, 08:16 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

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