Data Types-Programming


String:
A string is basically one or more characters enclosed in quote marks.


Character String:


A character string is only containing letters from A-Z, with no whole numbers.
Integer string:
An integer string is a number.





Integer Powers:


** is also used to resemble the power
2^3
is     2 ** 3 is how you do it.
= 8.


% this performs integer division, used in Python!!!!



Rounding a result:



What I've done is that I used Pyscripter in order to round a question, therefore so as I can get the rounded version of the real question.
A Boolean data type can e either True or False
Operators fall into two categories:
Relational operators, such as:
  • >
  • ==( not equal)
  • != (not equal)
  • Logical operators, suck as:
  • and
  • or
  • not





Comments