Skip to main content

Modules in python

 Modules

Modules is a code that is written by someone else that we can use without wasting the time

That is Module!

Comments

Popular posts from this blog

Snake Water Or Gun Game

  import  random # Snake Water Gun or Rock Paper Scissors def   gameWin ( comp ,  you ):      # If two values are equal, declare a tie!      if  comp  ==  you:          return   None      # Check for all possibilities when computer chose s      elif  comp  ==   's' :          if  you == 'w' :              return   False          elif  you == 'g' :              return   True           # Check for all possibilities when computer chose w      elif  comp  ==   'w' :          if  you == 'g' :              return   False          elif  you == 's' :              return   True           # Check for all possibilities when computer chose g      elif  comp  ==   'g' :          if  you == 's' :              return   False          elif  you == 'w' :              return   True print ( "Comp Turn: Snake(s) Water(w) or Gun(g)?" ) randNo  =  random.randint( 1 ,  3 )  if  randNo  ==   1 :     comp  =   's' elif  r

Pip in python

 Pip: A pip download a module from the internet. But the question is How to install it🤔? It's very simple. Simply, Just type pip install Module Name. You can type it in your windows PowerShell. Example: See, I want to download flask So, i can just type pip install flask Note: Don't Know about Module? Read  It Here! https://codewithyk.blogspot.com/2020/10/modules-in-python.html