Python Problems, programming, java, software, PHP, C programming, programming languages, visual, Pascal, Perl, XML program, UNIX, cyber program, C++, HTML, CSS, Python syntax, software, what is computer, programming, programming languages, computer programming, what is coding, what is programming, contract programming, need a programmer, cyber program, tmbmnadim, Alpha Codist, python, Alpha Codist, blogger, Python problems to solve, pythopn free corse, get python corse for free, Learn Python for free
print() is used to print something(Strings, Integers, boolean, etc.).
alpha = "Alpha Codist is the best"
codist = 5689
v=5689
print(alpha) # returns Alpha Codist is the best
print(codist) # returns 5689
print(codist == v) # returns True
Result:
Printing strings:
To print strings you will have to use "" inside the print() statement.
AC = "Alpha Codist"
print("Alpha Codist is the best.")
print(AC)
Result:
Printing Integers:
To print Integers you can simply enter the numeric value or you can calculate.
codist = 5689
print(59*45) # returns 2655
print(codist) # returns 5689
Result:
Printing boolean:
You can directly print boolean by entering a boolean between the parenthesis or you can compare to integers and see if your comparison is True or False. This is used to check codes.
Alpha = 59*45
Codist = 2655
print(Alpha == Codist) # returns 2655
print(True) # returns 5689
COMMENTS