top of page

Python Advancement

  • jacoblince8
  • Feb 17, 2023
  • 2 min read

I moving pretty quickly though the lessons at this point. I could be ready to start a project in a couple months. I have some new examples of my progress in the course.


The first two examples were from unit 3 which gets more into basic programing with Python. I wrote a process that would respond to user inputs and produce an outcome based around those inputs.



It asks you for your name and then the very fun questions of how many droids and how many Wookie's you would like to meat from Star Wars. The next one is very interesting because it's about how to make visual prints with code on a graph space. There's a lot more math that goes into graphics programing as it turns out. For instance, in the assignment for this lesson I was tasked with making a snowman by putting grey circles on top of each other of varying sizes based on the provided variables for the radius of each:



The bottom circle was easy to place, just make a circle using the BOTTOM_RADIUS variable for the radius and position it at x as half the width of the graph to center it and y as BOTTOM_RADIUS subtracted from the graph height. The y axis for programing graphs points down which is why you have to subtract rather than add to get the right height. The mid circle and top circle were a bit more of a challenge. I ended to make new variables so that there were a points that represented double BOTTOM_RADIUS plus MID_RADIUS for the mid circle and double BOTTOM_RADIUS plus double MID_RADIUS plus TOP_RADIUS for the TOP circle.



This insures that y for each is places so they are place right on top of each other with out space or overlap. Lastly I decided to do the bonus assignment and place some aesthetics on the snowman-two coal eyes and a carrot nose. :D I use my custom TOP_POINT for a y reference while subtracting a few points for the eye to be closer to the for head and I extended the nose past TOP_RADIUS:



Now here's what I got out of it:



I'm currently in the unit about control structure and I'm already getting a lot out of it. Here's and example of an age range program I made:



I'll have more to show next week. I'm already feeling more professionally competent with my coding skill set and I look forward to seeing what I can do with my knowledge. I appreciate all the help I have gotten and that I can access these lessons through my learning program. Have a great weekend.



 
 
 

Commenti


bottom of page