Oct-24-2017, 10:14 AM
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
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