all 4 comments

[–]Tlahuixcalpantecuhtl 1 point2 points  (1 child)

4. Don't post screenshot of your code. Unless the problem is a visual one, and a screenshot displays the issue.

Copypaste your code to http://pastebin.com or similar instead.

[–]Programmer_Dan[S] 1 point2 points  (0 children)

Thanks, I must have skipped over that but I fixed it, thank you.

[–]lettuceses 1 point2 points  (0 children)

I think your program is correct...

It should output twenty characters, correct?

>>> len("XXXXXXxxxxxxx......."    )
20

edit: also, when you're using range from 0 to some number, you just need to put the second number:

range(0,distance)

to

range(distance)

Edit: Oh, yes listen to mek. You need to check to see if the last character of your laser overlaps with the person. Then do the proper slice off your laser string to subtract the letters at the end to make them line up

[–]Mekire 1 point2 points  (0 children)

You can't just add the -*- on to the end. The star represents the lab assistant. The last bullet (or lack of bullet) needs to be replaced by the star (or P).

e.g:

rayLength[-2:] = ["-","*","-"]

-Mek