Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to close a python program

#Follow me on grepper :D
#Using break in loop types
while True:
  user= input("are you want to close program (y/n)? ")
  if user == "y": 
      break
  elif user=="n":
  	print("ok")
  
  else:
  	print("invalid")
Comment

PREVIOUS NEXT
Code Example
Python :: odd or even python 
Python :: matplotlib figure cut off 
Python :: first and last digit codechef solution 
Python :: how to add window background in pyqt5 
Python :: run exe from python 
Python :: import csrf_exempt django 
Python :: datetime object to string 
Python :: pytorch unsqueeze 
Python :: python 3 f string float format 
Python :: find factorial in python 
Python :: python nonlocal 
Python :: Display max number of columns pandas 
Python :: virtual env python 2 
Python :: making a virtual environment python 
Python :: django timezone settings 
Python :: create requirement .txt 
Python :: buscar valor aleatorio de una lista python 
Python :: how to convert all items in a list to integer python 
Python :: python how to count items in array 
Python :: import antigravity in python 
Python :: merge subplot matplotlib 
Python :: isinstance python 
Python :: dataset for cancer analysis in python 
Python :: read a file with pandas 
Python :: print type error python 
Python :: get a list as input from user 
Python :: mid point formula 
Python :: run for loop inside pdb 
Python :: how to use argparse 
Python :: number of days in a month python 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =