Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
guess the number
#6
I am also a beginner here but I am just saying using the function is really simple and not hard to learn I pretty much showed you what there was to it. But also you are mixing HTML with Python I think I did some research and it seems that [b] isn't really a thing in python what you could do is make the string end in .upper() which would essentially create the effect of bolding by making it all capital letters. If I come up with something I will post it but there also is a few other errors in your code you might want to look at. for example
while n != "guess":
that is saying while n is not equal to the string guess not the variable guess because it is in double quotes, instead make it

while n != guess: 
a few other issues I saw I can post about later when I look at it again.
Reply


Messages In This Thread
guess the number - by atux_null - Dec-05-2017, 02:09 PM
RE: guess the number - by Larz60+ - Dec-05-2017, 04:36 PM
RE: guess the number - by atux_null - Dec-05-2017, 05:30 PM
RE: guess the number - by jakegold98 - Dec-05-2017, 06:35 PM
RE: guess the number - by atux_null - Dec-05-2017, 07:22 PM
RE: guess the number - by jakegold98 - Dec-05-2017, 09:01 PM
RE: guess the number - by incineratez - Dec-06-2017, 03:47 AM
RE: guess the number - by atux_null - Dec-06-2017, 06:50 AM
RE: guess the number - by gruntfutuk - Dec-06-2017, 09:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Guess the number game jackthechampion 5 3,314 Mar-07-2020, 02:58 AM
Last Post: AKNL
  Asking for help in my code for a "Guess the number" game. Domz 5 4,002 Aug-14-2019, 12:35 PM
Last Post: perfringo
  Guess a number game Drone4four 4 5,471 Nov-16-2018, 03:56 AM
Last Post: Drone4four

Forum Jump:

User Panel Messages

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