diff --git a/README.md b/README.md index 5451737..dfd7569 100644 --- a/README.md +++ b/README.md @@ -330,20 +330,6 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
Sameer Sahu - - - - NishantPacharne -
- Nishant Pacharne -
- - - - tolgakurtuluss -
- Tolga Kurtulus -
diff --git a/scripts/Fake Data Generator/generator.py b/scripts/Fake Data Generator/generator.py new file mode 100644 index 0000000..e35bc97 --- /dev/null +++ b/scripts/Fake Data Generator/generator.py @@ -0,0 +1,22 @@ +# pip install Faker +from faker import Faker + +fake = Faker() + +print("--------- Generate ---------------") +print("1. Name") +print("2. Email") +print("3. Job") +print("4. Address") + +options = {1: fake.name(), 2: fake.email(), 3: fake.job(), 4: fake.address()} + +print("----------------------------------") +user_input = int(input("Choose Option:- ")) + +print("----------------------------------") + +if user_input in options: + print(f"Result: {options[user_input]}") +else: + print("Please try again with a valid option.") \ No newline at end of file diff --git a/scripts/Fake Data Generator/readme.md b/scripts/Fake Data Generator/readme.md new file mode 100644 index 0000000..83a910d --- /dev/null +++ b/scripts/Fake Data Generator/readme.md @@ -0,0 +1,15 @@ + +# Fake Data Generator +super easy and simple python script to generate random data + +## Perfect for beginners +- usage of libraries +- working with input +- working with dictionaries + +## Installation +Install the dependencies + +```sh +pip install -r requirements.txt +``` \ No newline at end of file diff --git a/scripts/Fake Data Generator/requirements.txt b/scripts/Fake Data Generator/requirements.txt new file mode 100644 index 0000000..529aa4e --- /dev/null +++ b/scripts/Fake Data Generator/requirements.txt @@ -0,0 +1,3 @@ +Faker==15.0.0 +python-dateutil==2.8.2 +six==1.16.0