Lecture 2 - Python Functions and Working with Files

Lecture 2: Python Functions and Working with Files
Lecture Date: August 22, 2020

Topics covered:

  • Branching with conditional statements and loops
  • Write reusable code with functions
  • Working with the OS & filesystem
  • Assignment and course forum walkthrough

Resources

Asking Questions

Please use this thread for asking questions during the lecture. Upvote questions by pressing the “Like” (heart) button. We will answer 5-10 highest upvoted questions during the lecture, and the rest will be answered by the community and course team after the lecture. If you see a question you know the answer to, please add an answer to help others.

20 Likes

cool
can’t wait for the next one!!
also, when would the results of the 1st assignments be out?

18 Likes

Give me a like if you are here!

141 Likes

5 posts were split to a new topic: Short keys for Jupyter Notebooks?

5 posts were split to a new topic: Using variables inside functions?

is it necessary to give indentation while writing variables on separate lines as in the example of EMI question?

5 Likes

3 posts were split to a new topic: Difference between Module and Package?

you will be conducting training for advanced topics ? Topics just now shown in the list below … recursion etc.

1 Like

6 posts were split to a new topic: How many argument can be passed in a function?

CSV module explain shortly.

Video streaming is paused …

Sir without using files, cant we do data anaylsis?

1 Like

How to include one file in multiple new files? reusing common functions in new code files?

1 Like

Kindly give some exercise on working with Files…

2 Likes

commit () is not working for some us , that issue is already raised in the fist assignment and in the lecture as well . that why we submitted links like colab, ect.

You can click commit above in the toolbar. It is also working without importing jovian. Just have to enter API KEY

1 Like

Sir, you explained functions very well. Kindly tell us, how function modules are written ? I mean a separate module file, having all functions. Thanks

1 Like

Yes, it is necessary. You need to keep the variable inside the function so that it is in the bounds of the function, otherwise it can’t be accessed by the function.

2 Likes

Completed the tour analysis exercise in functions topic

1 Like