Python - basics and math
Basics
I assume that you have seen my videos, and else this would be also nice to read.If you want python to write something down for you you should enter the command print first, after that you will have to use quotes that are these things "" u make them with the button shift and the button above shift wich looks like the quotes.
When you are done with that you can write between the quotes and the text that you write there is the text that python would remember and display.
like this:
Math
For the math you need to know the math operators you have:
+ plus, - minus, / devide, * multiply.
but with multiply is something special if you want to multiply something like this: 5 * 5 * 5 then you can write it down as
5 ** 3.
if you make a sum you can also use floats or ints a float u use for numbers with a comma, and ints are nummers without a comma.
there are also str these are for text like this:
this is how you write it down if you want to use a float of int or str.
first the variablename then the = then the action (float, str or int) and after thet again the variable between hooks.
if you liked this dont forget to subscribe my youtube channel:
http://www.youtube.com/user/JGMprogramming
if you liked this dont forget to subscribe my youtube channel:
http://www.youtube.com/user/JGMprogramming
Geen opmerkingen:
Een reactie posten