question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remove_punctuation_number | Python CLI

See original GitHub issue

Script 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sonnikicommented, Oct 6, 2021

@codePerfectPlus would you mind assigning this one to me? I have a solution ready to go 😃

1reaction
codeperfectpluscommented, Sep 28, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found