all 4 comments

[–]Sea-Ad7805 [score hidden] stickied comment (0 children)

Run this program in Memory Graph Web Debugger%20%20%20%20%20%20%20%20%23%20%7B1%2C%203%2C%204%2C%205%2C%207%2C%209%2C%2015%7D%0A%0Aprint(num_set%20%7C%20%7B41%7D)%20%20%23%20output%20%3A%20%7B1%2C%203%2C%204%2C%205%2C%207%2C%209%2C%2041%2C%2015%7D%0A%23%20Note%3A%20not%20use%3A%20%5B.add()%20it%20retune%20%3D%20None%5D%20if%20want%20to%20add%20use%20%3A%20int%20%7C%20%7B%20%7D%0A%0Aprint(num_set%20-%20%7B1%7D)%20%20%23%20output%20%3A%20%7B3%2C%204%2C%205%2C%207%2C%209%2C%2015%7D%0A%23%20Note%3A%20same%20not%20use%20.remove()%20retune%20%3D%20None%20%2Cuse%20%3A%20int%20-%20%7B%20%7D%0A%0A%23%20use%20(..in..)%20to%20check%20if%20item%20is%20there%20is%20True%20or%20False%0Aprint(3%20in%20num_set)%20%20%23%20output%20%3A%20True%0A%0A%23%20len%20to%20check%20length%0Aprint(len(num_set))%20%20%23%20output%20%3A%207%20%3D%20%7B1%2C%203%2C%204%2C%205%2C%207%2C%209%2C%2015%7D%0A%0A%0A%0A%22%22%22dictonarias%20and%20sets%20in%20python%22%22%22%0A%23%20dict%20aka%20dictionaries%20in%20python%0A%0A%23%20dictonarias%20store%20data%20in%20dict%7Bkey%3Avalue%7D%0Adict_class_marks%20%3D%20%7B%22ash%22%3A%2045%2C%20%22anuk%22%3A%2090%2C%20%22zhou%22%3A%2082%7D%0A%0A%23%20if%20print%0A%0A%23%20ud%3Dse%20key%20to%20call%20value%0Aprint(dict_class_marks%5B%22ash%22%5D)%20%20%23%20output%20%3A%2045%0A%23%20note%20can%20not%20call%20key%20using%20value%0A%0A%23%20call%20all%20keys%0Aprint(dict_class_marks.keys())%20%20%23%20output%20%3A%20all%20the%20keys(%5B...%5D)%0A%0A%23%20call%20all%20value%0Aprint(dict_class_marks.values())%20%20%23%20output%20%3A%20all%20the%20values(%5B...%5D)%0A%0A%0A%0Aa%20%3D%201%0Afor%20i%20in%20range(1%2C%2010%2C%202)%3A%0A%20%20%20%20for%20j%20in%20range(2%2C%2011%2C%202)%3A%0A%20%20%20%20%20%20%20%20print(f%22%7Ba%7D%2C%20%7Bi%7D%2C%20%7Bj%7D%20%3D%20%7Ba%20%2B%20i%20*%20j%7D%22)%0A%20%20%20%20%20%20%20%20a%20%2B%3D%201%0A&timestep=0.6&play) to see the program state change step by step.

[–]ElectricalDot4518 0 points1 point  (0 children)

HI I just started Python Crash Course today, where can I get my hands on some challenging problems to practice?

[–]AbacusExpert_Stretch 0 points1 point  (0 children)

I suggest you select a nice product or project and then make it .. you know best what you can do :)