Python Discord is doing an event called Revival of Code, where we work through the 2016 Advent of Code, one challenge every two days. The day 21 challenge, Scrambled Letters and Hash, involves processing a bunch of instructions that scramble a string, and then doing it in reverse.
Repo for Advent of Code 2016 Solutions: https://gitlab.com/0xdf/aoc2016
Intro video for this event: • Introduction [Revival of Code 2023 - ...
Configuring VSCode to debug PyTest: • Configuring VSCode to Debug PyTest
Real Python post with templates: https://realpython.com/python-advent-...
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Introduction
[00:20] Challenge part 1
[01:01] genday.sh / input
[01:35] Creating Password class with stub functions
[06:35] Writing tests for various methods
[09:06] Test for full part 1 example
[11:10] _init_ function
[11:45] swap_position
[12:40] swap_letters
[13:20] rotate
[14:21] rotate_by_letter
[15:40] reverse
[16:45] move
[17:51] scramble
[22:40] Debugging typos
[28:32] Passing tests
[29:20] Debugging typos
[30:24] Submitting part 1
[30:39] Challenge part 2
[30:53] Stubbing unscramble
[31:29] Part 2 tests
[32:18] unscrabmle function
[35:10] Debugging typos
[36:10] Fixing move function
[36:28] Solving part 2
[36:46] Conclusion
#ctf #adventofcode #revivalofcode #python
Смотрите видео Day 21 - Scrambled Letters and Hash [Revival of Code 2023 - Advent of Code 2016] онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь 0xdf 04 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 146 раз и оно понравилось 6 людям.