Jun 5, 2023

Python #6 (Boolean, Return)

--

name_list = ['4e+','mz','4education' ]
name = '4e+'
print(name == "mz")
print (name_list == 'mz')
print('mz' in name_list)
a = 'mz' in name_list
print(type(a))

>>

False False True <class 'bool'>