Connect with us

Hi, what are you looking for?

Programming

Python Tutorial For Data Science (1)

Python Tutorial For Data Science (1)
Python Tutorial For Data Science (1)

In this tutorial, we going to look at python basics for data science. We going to learn “output, variable, input, basic function, and basic programming info” Let’s start the tutorial.

Basic concepts
What Is Programming?

Computer programming is the process of designing and constructing executable computer programs to complete specific calculation results or perform specific tasks.

What Is Function?

We will use this concept a lot, so it will be better to learn at first. It is a string of commands used to perform a certain set of operations. It is also called the parts that perform the given task.

What Is The Argument?

mostly used for customizing functions, can be like variables for functions. it will be further reinforced with examples so we took a brief look at it.

Output Function And Parameters

The print function is used to write output to the screen. There are a few arguments that help this function. In this section, we will handle both the print function and these arguments.

We wrote Hello World, but we don’t write “Hello World” we will see the reason for this in variables, now we going to learn basic print arguments.

Variables

One of the first topics taught at the beginning of programming is variables. We will now look at a variable and examine it. We will look at 5 basic variables in this course, they will be int, string, bool, char, and float.

Variables are structures that hold a value inside. used to store the same type of data

Did you see, we used again “Hello World”, quotes show us that this data is a string so we didn’t see quotes on the console. They hold data in variables, but this data is temporary and is deleted and rewritten when you start the program again.

Input Function

We going to learn the input function but now, we don’t know type conversions so we going to work on a string. The input function is used to get string data from the user.

Type Function

This function will make your job very easy at the beginning. With this function, you can find which variable is of which type. For example, you created a new project and you have a value but, you forget this data type, in this case, you can use the type function.

You need to print() function to write on the console.

CONGRATULATIONS, YOU PASSED FIRST PYTHON GUIDE!

Click to comment

Leave a Reply

Your email address will not be published.

You May Also Like

Cyber Security

Search engines are filled with more and more data and information every day. Search engines are your best friend when you want to gather...

News

According to a study from Dartmouth College, Dartmouth’s Tuck School of Business, and Indiana University, artificial intelligence systems can be trained to produce human-like...

Cyber Security

There is a systematic order (layer ordering) in networks for data transfer to occur. These layers are responsible for transmitting the data to the...

Game Development

In this article, we are going to add the double jump feature for a simple 2D platform game. You can implement it in a...