logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    Eric Wu
    Jul 25
    Edited: Jul 25

    7/20 - Homework Week 6 Day 2

    in Introduction to Python

    REMINDER: There is no class on Sunday (7/24)


    Homework:

    Finish the game. Here are some specific instructions.

    - Print the Pico Fermi Bagel output from the getClue function

    - Check special case 1: if the guess matches the secretNum (exit all while loops)

    - Reduce number of guesses by 1 each turn

    - Check special case 2 outside of the while loop "while numOfGuesses > 0:"

    - Set game = False in either special case

    - Try running and debugging your finished code. If you can't seem to figure what's buggy, check against the completed code


    Resources:

    Slides:https://docs.google.com/presentation/d/1D6y1vuHr2LdxzM0r1PLLHs0QPESfuiLO8Gn_gB_LHnA/edit?usp=sharing

    Class code: https://replit.com/join/ycfkxwycuv-shravyas

    Pico Fermi Bagel Game Code (Completed): https://replit.com/join/ovchorqkie-shravyas


    You can always email us at shravyassathish@gmail.com (mentor) or kingericwu@gmail.com (TA) or message us on Discord if you have any questions about the homework or what we covered in class.

    1 comment
    0
    1 Comment
    Darrin Lin
    Jul 27

    https://replit.com/@DarrinLin/Week6Day2Class#main.py

    Like
    1 comments
    Similar Posts
    • 6/12 - Homework Week 1 Day 2
    • 6/15 - Homework Week 2 Day 1
    • 6/19 - Homework Week 2 Day 2

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2022 Legion of Learners