Kayıtlar

Mayıs, 2024 tarihine ait yayınlar gösteriliyor

Introduction to Programming - Variables 2

Resim
 Hello you all! today we are going write our first codes! lets start. our first code is "print()" with that little guy you can write sth on your terminal  As you can see it gave me error when i tried to write its because of it tried to write a variable if i want  it  to write it I should write it in nails like this now i can write anything I want! and I want to define a variable i need to write it as "first variables name then value like this  myAge = 16  it will automaticly make myAge variable a integer but if you wanna be sure about its a integer you should write  myAge = int ( 16 )  and if you write  print ( myAge )   it will write "16" there is other function named type and if you write sth like this  print ( type ( myAge ) )  it will show you myAge variables type. So our terminal says <class 'int'> lets make myAge float and write its type and value  myAge = float ( 16 ) print ( "my age is " + myAge + " myAg...

Introduction to Programming - Variables

 Hello and welcome to my blog! Today we are going to learn about variables. A variable can storage  different kinds of values such as texts, numbers, binaries etc. Python has 4 main variables "string, float,  boolean and integer" lets start with integer. Integer also known as int is variable type that integers such as  1, 10, 325. The other variable type is float. Float is also a number variable but it can storage fractional  numbers such as 1.5 23.9 if you try to give to float type a integer number it takes it as float again for  example if you try to put 3 in a float and try to print it it will say yo its 3.0 Next one is boolean. Boolean  variables has 2 opportunity True or False. and the last one is string. stings can storage texts and if you  write numbers on string it will write it but you cant make mathematical operation on them. thats all for  this blog next time we are going to start writing real codes see you on next blog! ...

Introduction to Programming - Installing Python

 Hello and welcome to my new blog serie. In this serie I'm gonna teach you basic programming. In the  beginning you need to select an area to learn such as AI development, web design game development etc. I assume you don't know where to start and since you are just going to learn basics I reccomend you to  learn python. Python is dynamic language that really easy to learn. you can make almost everything with  it. So i want you to download python and pycharm (pycharm is an application that you can write code on  python with it) with this video "https://www.youtube.com/watch?v=YagM_FuPLQU" (btw dont  download  3.11 instead download 3.10) I guarantee you after this serie you are going to be able to work  on  specific area. After installation create new project folder and create new python file and wait for other  blog!