Python Forum
Converting pseudocode to Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting pseudocode to Python
#1
hi there,

First python project, need to convert the psuedocode which I wrote below to python. Don't actually need the program to work just need the python code. Brand new to this stuff, would appreciate someone helping me out.
qwerty

number = RAN_NUMBER
count_attempts = 0
answer_status = (“incorrect”)
while answer_status = (“incorrect”)
guess = input (“please guess number)
count_attempts = count_attempts +1
if guess = number then print (“well done. count_attempts”)
answer_status=(“correct”)
else print (“number of digits correct”)
endif
endwhile
Reply


Messages In This Thread
Converting pseudocode to Python - by qwertyK - Oct-24-2017, 10:14 AM
RE: Converting pseudocode to Python - by metulburr - Oct-24-2017, 10:18 AM
RE: Converting pseudocode to Python - by buran - Oct-24-2017, 10:18 AM
RE: Converting pseudocode to Python - by qwertyK - Oct-24-2017, 01:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting String to Integer Python Johnny1998 5 3,286 Aug-02-2019, 08:13 PM
Last Post: Johnny1998
  Can't figure out how to write the correct functions for my pseudocode mkrodick 2 2,818 Jul-30-2018, 12:30 PM
Last Post: ichabod801
  Problem writing code with my pseudocode MattWilk97 1 2,989 Aug-29-2017, 01:54 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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