How to take input with python (simplest way to learn programming fundamentals)

Опубликовано: 17 Февраль 2026
на канале: Abdalla Gubara
20
1

Taking input from the user allows us to take information from them and use it in our code for other purposes.
.
It is also beneficial to make the user have the full functionality of our code without having to deal with the code directly or modify it.
.
In this example, the users are able to draw any shape that they want by just typing the number of members in the shape.
.
Also, we have covered how python directly assume that inputs are always ''string'' type and in order to change it to integers we have to call "int()" on the input.
.
By using the function "type()" we are able to know the data type that we are using for our variables.
.
If you want to learn more follow me on social media @:

Instagram :   / jubara_abdallah  
LinkedIn :   / abdalla-ashraf-23a079153  
Github : https://github.com/abdallahash
My site : https://abdallah-ashraf.herokuapp.com/

For python tutoring: http://pythontutoring.tk/

#python #input #pythonprogramming #programming