Hey guys, I’m back with my all new stuff. I have created an application for windows using python programming language. The application is called Live Dictionary. There is nothing new in it but I have integrated some features as in, a user can search for three things i.e. Meaning, Antonyms and Synonyms of the word. Also, it allows to save your searched content in a text file which will be generated automatically in your current program folder.
Since the name only defines ‘Live’ i.e. it requires internet to search the content. Below are some screenies …
Python provides basic functions and methods necessary to manipulate files by default. You can do most of the file manipulation using a file object.
So, today we will cover the file handling in python. Before you can read or write a file, you have to open it using Python’s built-in open() function. This function creates a file object, which would be utilized to call other support methods associated with it. So, in the below program we will create a menu for reading and writing a file. it will be a simple Menu for just reading and writing data.
Note: The text file should be there in the same folder for reading, where you have saved the program file. Also, write the filename with it’s extension for instance ‘demo.txt’.
Below is the output of the program, have a look and try by yourself. If you still cannot figure it out the then click on Continue Reading… for solution.
Here I am back with a new challenge for you guys.
Lets try to create a logic sequence of number in Python. Look at the below image.
The above logic sequence is created using following keywords:
- Nested For Loop
- Print (of course)
Try to analyze the above given data and create the sequence from your own.
Failed? Click More below to get the Solution…