Skip to content

Continue in loops, basic algo of max, min, colors in console None-type (The “None” keyword is used to define a null value, or no value at all, when you don’t know if there is an answer)

Notifications You must be signed in to change notification settings

ShaniStaretz-ai/python-lec7-sep-18-24

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lecture 7- sep-18

learned subjects:

  1. continue keyword in loops:
    • same as break, but only to exit the current iteration and continue stay in the loop.
  2. basic algorithm of the maximum and minimum numbers.
  3. None-type:
    • The None keyword is used to define a null value, or no value at all.
    • None is not the same as 0, False, or an empty string. None is a data type of its own (NoneType) and only None can be None.
    • shortcut conditions:
      max_n=None;
      ...
      if max_n is None or num>max_n:
           max_n=num
      
    • instead max_num==0 you can write: max_n is None

Extra:

About

Continue in loops, basic algo of max, min, colors in console None-type (The “None” keyword is used to define a null value, or no value at all, when you don’t know if there is an answer)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages