Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

simple trivia question python

ans = input('1. questoin here
')
if ans.lower() == 'answer to questoin here':
  print("corect")
else:
  print("incorect")
Comment

PREVIOUS NEXT
Code Example
Python :: bar plot matplotlib 
Python :: from imblearn.over_sampling import smote error 
Python :: how to do an if input = python 
Python :: 2d array pytho 
Python :: python get nearest value in list 
Python :: python print in one line 
Python :: localhost server in Python 
Python :: Concat and Append DFs Python 
Python :: finding the index of an element in a pandas df 
Python :: list adding to the begining python 
Python :: euclidean division in python 
Python :: how to make a for loop increment by 2 in python 
Python :: flask get ip of user 
Python :: pyqt5 qlineedit on change 
Python :: python game engine 
Python :: change default option optionmenu tkinter 
Python :: comparing two dataframe columns 
Python :: python replace all values in a column 
Python :: how to count special values in data in python 
Python :: python average 
Python :: find order of characters python 
Python :: ip regex python 
Python :: discord.py get user input 
Python :: free python script hosting 
Python :: import django-on-heroku 
Python :: plotly line plot 
Python :: python tkinter define window size 
Python :: how to change background of tkinter window 
Python :: python numpy array delete multiple columns 
Python :: how to create empty series in pandas 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =