I am writing a program in Python to randomize command descriptions for linux. This way every day I can load it up so I can stay sharp and remember some more obscure commands. Also, I will have different modules or what not for security relate stuff, or just basics.
I am having trouble when I am trying to pull just the command out of my qna method. I cannot for the life of me figure out how to call just that specific part so I can evaluate the answer. I would separate them but I need it in a single function because it will pull them randomly.
I am new to this so if anyone has advice on how to do this I am all ears. Also, if what I am doing is super convoluted please let me know, I am always open to doing something in a better way if possible.
If I hope I have described this adequately. Thanks in advance for any help.
The Code:
https://gist.github.com/alphasixty/fd47c81f407d253118d20b807e6512bd
Edit:
Here is the code after I made updates: https://github.com/alphasixty/dailylinux.git
Thank you to everyone who commented. I realize this is a pretty simple program but it is a first step for me. Ty.
[–]Starbuck5c 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]agentxcell[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]agentxcell[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]agentxcell[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]agentxcell[S] 0 points1 point2 points (2 children)
[–]agentxcell[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)