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. Required fields are marked *

You May Also Like

Programming

This article is prepared to explain concepts that will be important for programming beginners such as data types, variables, heap and stack, and operators....

Programming

This article was created for those who want to use functional programming in their career or who are learning new programming paradigms. We will...

Programming

Functions are pieces of code that combine the integrity of the code used to perform a task into a single structure. If you are...

Programming

Computers can solve an event in different ways, we call these ways algorithms, each algorithm works differently from the others and has different processing...