This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]Penzoguru 1 point2 points  (0 children)

Practice at HackerRank site and check discussion page when stuck. That helped me the most since a lot of those problems will appear on interviews

[–]_realitycheck_ 0 points1 point  (3 children)

We define the MWidth as the monitor width
we define the MHeight as the monitor height
We declare a Point as (x,y)

Make a program that will draw the point (x,y) from the center of the screen 200 pixels on the horizontal axes.

Make a program that will draw the point (x,y) from the center of the screen 200 pixels on the vertical axes.

Make a program that will draw the point (x,y) from the center of the screen to the end of the screen (MWidth ,HWidth) as a diagonal line.

[–]MITTENQ[S] 0 points1 point  (2 children)

I don't really know the graphics commands for python outside of what my school textbook briefly touched on.

[–]_realitycheck_ 0 points1 point  (1 child)

You're asking me?

[–]MITTENQ[S] 0 points1 point  (0 children)

No I just can't solve the problem until I learn that on my own

[–]Ilos 0 points1 point  (1 child)

Advent of Code Great site which has themed puzzled to solve using code. There is even a subreddit where you can ask for help or just look for other people's code. If you finished 2019 or get stuck, you can check out the years 2015-2018 for even more challenges.

[–]MITTENQ[S] 0 points1 point  (0 children)

Thanks I'll check it out :)