remove_punctuation_number | Python CLI
See original GitHub issueScript Title - Python CLI tool to Remove punctuation and Number from the text file. Use Argparser or Click module
python script.py -n <file_name> #remove number
python script.py -p <file_name> #remove punctuation
python script.py -np <file_name> #remove number and punctuation
Hint - Argparser/Click, Regex module
what will change -
Instructions
- Create a new folder for your script and file/folder name should be appropriate.
- Create a README.md in your folder for program Instructions
- add requirements.txt if needed
- add your program name & Author name in the main readme
Please add/delete options that are not relevant.
- Adding New Code
Programming Language
- Python
🌟 Star it 🍴Fork it 🤝 Contribute to it!
Discord server - https://discord.gg/FXyh2S3
Happy Coding,
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Remove Punctuation Python - STechies
How to remove punctuation from a string in python, python removes punctuation from text file or replace punctuation with space python.
Read more >How to Remove Punctuation From a String, List, and File in ...
The string translate method is the fastest way to remove punctuation from a string in python. The translate() function is available in the...
Read more >How to remove punctuation from a Python String
We can use replace() method to remove punctuation from python string by replacing each punctuation mark by empty string. We will iterate over ......
Read more >How to remove the punctuation in the middle of a word or ...
This works only in python2. In python3 filter will always return an iterable and you have to do ''.join(filter(str.isalnum, the_text)) . – ...
Read more >Python: Remove Punctuation from a String (3 Different Ways!)
One of the easiest ways to remove punctuation from a string in Python is to use the str.translate() method. The translate() method typically ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@codePerfectPlus would you mind assigning this one to me? I have a solution ready to go 😃
Make sure to take input from CLI as the above example. If you have any script idea then create an issue for that.
🌟 Star it 🍴Fork it 🤝 Contribute to it! Happy Coding