<jupyter_start><jupyter_text>relational operators<jupyter_code>5==5
5==4
type(True)
a=4
b=5
c=4
a==b
a == c
5.3 == 5.3
2.1 +3.2 == 5.3
4 < 5
who
whos
5.7 <= 3
"Suisse" > "France"
4 < 6 < 6.1 < 9.3
4 < 6.1 < 6 < 9.3
"Federer" > "Djokovic"
ord("F")
ord("D")<jupyter_output><empty_output><jupyter_text>identity operators<jupyter_code>a = 5.6
b = 5.6

a == b, a is b
a = 5.6
b = a

a == b, a is b
a = 5.6
b = a
a = 6.1

a == b, a is b

a = 5
b = 5

a == b, a is b
a = 350
b = 350

a is b
a = 'Hello, world.'
b = 'Hello, world.'

a == b, a is b
a = 'Hello, world.'
b = a

a == b, a is b
a = 'python'
b = 'python'

a == b, a is b<jupyter_output><empty_output><jupyter_text>Logical operators<jupyter_code>True and True
False and True
True or False
not False and True

(a < b) and (b < c)
True ==1
False == 0
True + False
type(True + False)<jupyter_output><empty_output><jupyter_text>Conditional<jupyter_code>codon = 'AUG'

if codon == 'AUG':
    print('This codon is the start codon.')

codon = 'AGG'

if codon == 'AUG':
    print('This codon is the start codon.')
else:
    print('This codon is not the start codon.')
codon = 'UAG'

if codon == 'AUG':
    print('This codon is the start codon.')
else:
    if codon == 'UAA' or codon == 'UAG' or codon == 'UGA':
        print('This codon is a stop codon.')
    else:
        print('This codon is neither a start nor stop codon.')
codon = 'UGG'

if codon == 'AUG':
    print('This codon is the start codon.')
elif codon == 'UAA' or codon == 'UAG' or codon == 'UGA':
    print('This codon is a stop codon.')
else:
    print('This codon is neither a start nor stop codon.')
light = "red"
if light == "green":
    print("hit the gas mamen")
elif light == "red":
    print("do not hit the gas dont be a french driver")
elif light == "orange":
    print("slow down to a stop and be cool")<jupyter_output>do not hit the gas dont be a french driver
{'fraction_non_alphanumeric': 0.1577270313329793, 'fraction_numerical': 0.02867764206054169, 'mean_word_length': 3.2242152466367715, 'pattern_counts': {'":': 3, '<': 26, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '574165', 'license': 'CC-BY-4.0', 'n_tokens_mistral': 830, 'n_tokens_neox': 772, 'n_words': 280, 'path': 'lesson_04.ipynb', 'repo_name': 'Alixbuu/bootcamp', 'size': '1883'}