Featured post

Best Machine Learning Book for Beginners

You need a mixof different technologies for Data Science projects. Instead of learning many skills, just learn a few. The four main steps of any project are extracting the data, model development, artificial intelligence, and presentation. Attending interviews with many skills is not so easy. So keep the skills short.
A person with many skills can't perform all the work. You had better learn a few skills like Python, MATLAB, Tableau, and RDBMS. So that you can get a job quickly in the data-science project.
Out of Data Science skills, Machine learning is a new concept. Why because you can learn Python, like any other language. Tableau also the same. Here is the area that needs your 60% effort is Machine learning.  Machine Learning best book to start.

Related Posts How to write multiple IF-conditions in Python Simplified

How to Work with 'Pointers' in Python

Pointers in Python explained with a simple example. The pointer is a memory location. It has three identities namely Name, Value, and Location (Address). So in the context of Python, ony to write C logic Python it supports Pointers. This is possible with 'ctypes' package (library).


What is Pointer?


1. It has value
2. It has address
3. It has Name

How to Work with 'Pointers' in Python


Python Does not Has Pointer Datatype.

If the Python does not has a Pointer data type, why it supports. The main reason is to deal with C- Interface.  The best example is sending an address instead of the actual value.


How to Import 'ctypes' in Python (Windows/Linux)?

To work with C, in Python you need to import a 'ctypes' library. Read here how to import 'ctypes' for windows and Linux.

How to Use Pointers in Python?

  1. To pass a reference(address) to the C interface.
  2. To write C functions in Python.
  3. Once ctypes library present, then you can write C logic in Python.

References

Comments

Popular posts from this blog

Hyperledger Fabric: 20 Real Interview Questions

Best Machine Learning Book for Beginners

Python Assigning Multiple Values at Once