Python Day 6

Python Day 6

Basic String Operations Strings are bits of text. They can be defined as anything between quotes:   astring = "Hello world!" astring2 = 'Hello world!'   As you can see, the first thing you learned was printing a simple sentence. This...
Python Day 7

Python Day 7

Python uses boolean logic to evaluate conditions. The boolean values True and False are returned when an expression is compared or evaluated. For example: x = 2 print(x == 2) # prints out True print(x == 3) # prints out False print(x < 3) # prints out True​  ...