Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

create log in python

logging.basicConfig(filename="logfilename.log", level=logging.INFO)
# Log Creation

logging.info('your text goes here')
logging.error('your text goes here')
logging.debug('your text goes here')
Comment

create login system in python

def Login():
  while (loop == 'true'):
      username = input("Please enter your username: ")
      if (username == CorrectUsername):
          password = input("Please enter your password: ")
          if (password == CorrectPassword):
              print("Logged in successfully as ") + username
              loop = 'false'
          else:
              print "Password incorrect!"
      else:
          print "Username incorrect!"
Comment

PREVIOUS NEXT
Code Example
Python :: python list of whole numbers 
Python :: np.tanh 
Python :: python sleep timer 
Python :: update xls file using python 
Python :: convert all numbers in list to string python 
Python :: python datetime move forward one day 
Python :: django media url 
Python :: arithmetic in python 
Python :: how to return a value from a function in python 
Python :: python dataframe to excel 
Python :: python sleep 
Python :: change the number in 3rd line to get factorial for the number you want. Ex: num = 30 
Python :: change the side of the axis plt python 
Python :: numpy one hot 
Python :: python check if string contains substring 
Python :: why to use self in python 
Python :: python program to print inverted star pattern 
Python :: py string in list 
Python :: how to hide ticks marks in plot 
Python :: python string remove whitespace 
Python :: weighted average in python pandas 
Python :: time in python code 
Python :: datetime decreasing date python 
Python :: check django version windows 
Python :: python get screen size raspberry pi 
Python :: pandas nat to null? 
Python :: how to print class attributes in python 
Python :: python includes string 
Python :: get method in python dictionary 
Python :: get key from value dictionary py 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =