Python Course in Delhi | Object Test & Asessments

Hey, Everyone.

Welcome to the advanced Python course objects test. So, this will be probably a pretty brief test.

However, an interesting one. As always, go to the advanced Python course objects test.

Notebook. You can click the download link on the right and more test in available in Techstack website. Moreover, fill it in yourself.

I’m just going to go over the problems quickly, so there’s no confusion.

Python Course in Delhi | Object Test & Asessments

The first problem that you’re going to do is convert the number 1024 to binary and hexadecimal representation.

Problem two. I want you to round 5.23222 to two decimal places.

That was many twos. Okay, I am next moving on the advanced strings.

Here, I want you to check if every letter in the string S is lower case.

Moreover, use the methods you’ve learned in this section of the course.

Problem four, what I want you to do is check how many times does the letter W show up in the string below.

After that, advanced sets. Problem five.

I want you to find the elements in set one that is not in set two.

Then, I want you to find all the elements that are in either set for problem six.

In advanced dictionaries, problem seven. I want you to create this dictionary right here.

So, note the pattern, what’s going on? Moreover, then I want you to use dictionary comprehension to create that dictionary.

Then advanced lists, reverse and sort the list below.

Okay, that’s it and good luck. Honestly, if you’re this far into the course, you may not even feel like you need to be tested, so if you feel that way, go ahead and feel free to skip this advanced Python objects test.

Let’s learn basic from step to step in Techstack course of python training. We have upcoming batch of python course in delhi in saket location.

However, hopefully, it should be pretty straight forward to you by this point in the course.

Go quickly through the solutions of the Advanced Python course Objects Test.

Okay, so the first one you had to do is use bin and hex functions to do these conversions. After that, you had to use the round function, to round.

Problem three I was expecting you to use the is lower method and then similarly in problem four it was another method, first string count and then w.

Advanced sets, the methods here were the difference for problem five, and union for problem six.

Advanced dictionaries, this one might have been tough if you didn’t see the pattern.

Moreover, also dictionary comprehension, in general, is a little strange, but this was the solution for the dictionary comprehension, it was just cubing all those numbers, and the key was the number, the value was the number cubed.

Okay, advanced lists hopefully these were pretty straightforward, should have been just from the problem itself, reverse and sort.

Okay, so that’s just quick overview, go ahead and check out the Jupiter notebook if you want to see the code yourself.

Okay, thanks, everyone.

Leave a Reply

Your email address will not be published. Required fields are marked *