Scripts_of_Python_Programming_Book
Scripts_of_Python_Programming_Book copied to clipboard
Python scripts make available for book readers for easy learning and coding.
this is my code f = open("demofile.txt","r") print(f.read ()) output C:\Users\My Name>python demo_file_open.py Hello! Welcome to demofile.txt This file is for testing purposes. Good Luck! f = open("demofile.txt","r") print(f.read(50)) output...
Chapter Link: https://github.com/Sana-Rasheed/Scripts_of_Python_Programming_Book/blob/master/Chapter_17th_unittest.py E ERROR: C:\Users\Nasir\AppData\Roaming\jupyter\runtime\kernel-510a6c02-c3b3-432f-b96a-42c7be9fc54d (unittest.loader._FailedTest) AttributeError: module '__main__' has no attribute 'C:\Users\Nasir\AppData\Roaming\jupyter\runtime\kernel-510a6c02-c3b3-432f-b96a-42c7be9fc54d' ---------------------------------------------------------------------- Ran 1 test in 0.001s FAILED (errors=1) An exception has occurred, use %tb to see...
# Example 8 # Computer the value of a block of stock shares= 150 price= 3 + 5.0/8.0 value= shares * price print("value",value) # Example 9 # Total value of...
I am reading your book on daily basis but I am facing an issue regarding where I can use python send me some ideas