Study Guide for IITM BS Programming in Python OPPE 2 Tips

Study Guide for IITM BS Programming in Python OPPE 2 Tips

Posted on 29-Jun-2023 by PARAMPREET SINGH in IITM BS


Tips for Python OPPE 2:

  1. There will be 5 questions in the OPPE, and you have to solve any 4. So, you have ~20 minutes for each question to solve.
  2. You can give 3 min to read/examine each question, and if you get some intuition how to solve within the first 5 min, then you should start writing code, if it's taking more time, skip the current question and go to next.
  3. Have a pen and paper with you, and break the question into smaller parts, write pseudocode for each part, then start writing code in editor (don't take more than 5 min).
  4. With this, you will end up having 12 minutes to write code. It's enough because you know the logic and all, you just need to type that's it.
  5. For recursion questions, try to do it in the for loop way first within 10 minutes, then you can try the recursive way, because logic is the same, just the recursive call with little tweaks is there.
  6. Your recursive code must contain:
  • Base case
  • Return statement
  • Same function call

     7.  In matrix questions, start with finding length of rows and columns like this:
         m = len(matrix)   
         n = len(matrix[0])

     8.  If you forgot how some built-in function works, then do: help(func_name) .

     9.  If you got some errors in your code, check this image.

🔗 https://drive.google.com/file/d/1LCmb82CykYSWZIK_a-lnTxXgQiRBCfGC/view?usp=sharing


Bonus ✨

Check my OPPE 1 Revision session here 🔗

Check my OPPE 2 Revision session here 🔗

Check my OPPE 2 Extra Question Practice session here 🔗

Python Live Sessions Playlist🔗 https://www.shorturl.at/anrAM


Thanks,
Parampreet Singh

Social links:
Github: https://github.com/Param302

Kaggle: https://kaggle.com/param302

LinkedIn: https://www.linkedin.com/in/param302/

Telegram: https://t.me/Param_302

Twitter: https://twitter.com/Param3021

YouTube: https://youtube.com/@Param3021