Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

assignment 7.1 python data structures

# Use words.txt as the file name
fname = input("Enter file name: ")
fh = open(fname)
ah = fh.read().rstrip().upper()

print(ah)
Comment

PREVIOUS NEXT
Code Example
Python :: remove a file or dir in linux or mac or ubuntu 
Python :: train_size 
Python :: ImportError: No module named colored 
Python :: how to get input from list in python 
Python :: add column array python 
Python :: mac catallina python3 
Python :: timestamp e datetime python 
Python :: how to convert days into seconds in python using time.time() 
Python :: csrf token fetch django 
Python :: pywhatkit docs 
Python :: image no showing in django 
Python :: How to copy any text using python 
Python :: pandas filter dataframe 
Python :: tkinter yes no dialogue box 
Python :: correlation python 
Python :: how to read then overwrite a file with python 
Python :: when was python created 
Python :: hex to binary python3 
Python :: how to read excel file in python 
Python :: select 2 cols from dataframe python pandas 
Python :: plot sphere in matplotlib 
Python :: how to use the random module in python 
Python :: python google chrome 
Python :: python pillow resize image 
Python :: python dictionary to array 
Python :: circumference of circle 
Python :: python do nothing 
Python :: how to iterate over object in python 
Python :: python proxy scraper 
Python :: add row in db django 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =