Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find a bug python

#Use the print statement, print is Your Friend
#see if you can fix the bug by using the print statement
pages = 0
word_per_page = 0
pages = int(input("Number of pages: "))
word_per_page == int(input("Number of words per page: "))
total_words = pages * word_per_page
#print("pages: ", pages)
#print("word_per_page: ", word_per_page)
#print("total_words: ", total_words )
 
PREVIOUS NEXT
Tagged: #find #bug #python
ADD COMMENT
Topic
Name
4+2 =