Conditional Logic in Python A lot of time we are stuck in a situation like when this happens do something else do some other task, this is also called decision taking based on certain criteria or conditions. If..elif..else these statements are used when doing the decision-making in Python. Keep in
Data Analyst vs Data Scientist vs Data EngineeringData Analyst vs Data Scientist vs Data Engineering
Data play an important role in today’s world. Today it is being used in decision making and different firms, and organizations are using their respective data for effective data driven decisions. In this article, we will explore about Data Analyst, Data Engineer, and Data Scientist. Data Analyst Data Analyst will
NumPy is a Python package. It stands for ‘Numerical Python’. A library used for working, processing with arrays and consisting of multidimensional array objects. It also perform operations related to linear algebra, fourier transform, and matrices. NumPy aims to provide an array object that is up to 50x faster that traditional
List is a datatype in Python which can be print as a list of comma-isolated values between square brackets. Advantage of using a list is that list items need not be of the same type. Creating a list is as simple as inserting different comma-separated values between square brackets. subject_list=
Range method returns values between start and stop, increasing by the value of step (defaults to 1)… range(start, stop, step) >>> for i in range (0, 10): … print(i) File “<stdin>”, line 2 print(i) ^ IndentationError: expected an indented block Lets fix this with a comma before print statement for
Str.capitalize() returns a copy of the string containing first character capitalized and the rest in lowercased x = "hello" x.capitalize() Output: Hello Str.lower() returns a string in which all characters are in lowercased x = "HELLO" x.lower() Output: hello Str.upper() returns a string in which all characters are in uppercased x=
You can download python from https://www.python.org/downloads/ don’t forget to mention python path in environment variables. You can also install Anaconda and work on Ipython or Jypyter https://www.anaconda.com/download So after installation in your terminal, you can simply run the command: python To open the python shell and start running python commands.