exe-18

Run Settings
LanguagePython
Language Version
Run Command
#Fundamental data types #int - integers-numbers - no decimal-places #float- decimal numbers - and it take more spaces or memory print(2+4) print(type(6)) print(type(2-4)) print(type(2*4)) print(type(2/4)) print(type(10.56)) print(2 ** 3) print(5 // 4) print( 5 % 4) #moduler # 20-video- math functions print(round(3.9)) print(abs(-20)) #21-video - developer fundamental --use google...to find key words to program #22-video - # operator precedence print((20-3) + 2 ** 2)
# using this list, basket = ["Banana", "Apples", "Oranges", "Blueberries"]; # 1. Remove the Banana from the list basket2 = basket.remove('Banana') # 2. Remove "Blueberries" from the list. basket2 = basket.remove('Blueberries') # 3. Put "Kiwi" at the end of the list. basket2 = basket.append('Kiwi') # 4. Add "Apples" at the beginning of the list basket2 = basket.append('Apples') # 5. Count how many apples in the basket #print(basket.count('Apples')) # 6. empty the basket #new_list= basket.clear() print(basket) print(basket.count('Apples'))
# using this list, basket = ["Banana", "Apples", "Oranges", "Blueberries"]; # 1. Remove the Banana from the list basket2 = basket.remove('Banana') # 2. Remove "Blueberries" from the list. basket2 = basket.remove('Blueberries') # 3. Put "Kiwi" at the end of the list. basket2 = basket.append('Kiwi') # 4. Add "Apples" at the beginning of the list basket2 = basket.append('Apples') # 5. Count how many apples in the basket #print(basket.count('Apples')) # 6. empty the basket #new_list= basket.clear() print(basket) print(basket.count('Apples')
Editor Settings
Theme
Key bindings
Full width
Lines