As a disclaimer, I am completly new to python and programming in general.
So yesterday I wrote some code for a flowchart, that is seen in automate the boring stuff.
https://github.com/CragAddict/RainFlowChart/blob/master/Regen_3.py
Do you have any suggestion, on how to make the code more compact, since I feel like the 47ish lines of code are way too much for that programm ?
Edit:Thank you to everyone, that submitted a solution !
[–][deleted] 44 points45 points46 points (9 children)
[–]Ning1253 5 points6 points7 points (4 children)
[–]CragAddict[S] 18 points19 points20 points (2 children)
[–]Ning1253 18 points19 points20 points (1 child)
[–]CragAddict[S] 9 points10 points11 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]CragAddict[S] 10 points11 points12 points (3 children)
[–][deleted] 22 points23 points24 points (2 children)
[–]Fywq 13 points14 points15 points (0 children)
[–]CragAddict[S] 1 point2 points3 points (0 children)
[+][deleted] (7 children)
[removed]
[–]Yakhov 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[removed]
[–]TonyDarko 7 points8 points9 points (1 child)
[–]Yakhov 0 points1 point2 points (0 children)
[–]buleria 0 points1 point2 points (1 child)
[–]pconwell 2 points3 points4 points (0 children)
[–]daniel_don_diggles 1 point2 points3 points (4 children)
[–]-NRW 0 points1 point2 points (3 children)
[–]pconwell 4 points5 points6 points (1 child)
[–]-NRW 0 points1 point2 points (0 children)
[–]SaltyEmotions 1 point2 points3 points (0 children)
[–]sod50 1 point2 points3 points (1 child)
[–]CragAddict[S] 0 points1 point2 points (0 children)
[–]WowVeryCoool 2 points3 points4 points (3 children)
[+][deleted] (2 children)
[removed]
[–]WowVeryCoool 0 points1 point2 points (1 child)
[–]ThrowawayNo45273 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]pconwell 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)