Skip to content

Tag: python

Dictionary making weird key:value pairs

I want to make a simple calculator, where you just type in something like “2+2*2” and it calculates the answer. First step was to find, and cut out the individual numbers, which I tried doing below. But when I input: I don’t get the expected output of: But rather: I’m still very new to…

Searching for matching attributes

My special objects have one list of attribute-values (that is a varying list of abbreviated strings of short but differing length meaning some capabilities of any object) → [‘A’, ‘B’, ‘AC’, ‘BC’, …] running the program I’m searching for at least one …