diff --git a/Classes_Example.py b/Classes_Example.py new file mode 100644 index 0000000..e7e36db --- /dev/null +++ b/Classes_Example.py @@ -0,0 +1,13 @@ +'''All classes have a function called __init__(), + which is always executed when the class is being initiated + ''' + +class Example1: + def __init__(self, name, age): + self.name = name + self.age = age + +e1 = Example1("Ayushi", 20) + +print(e1.name) +print(e1.age) diff --git a/Classes_Example3.py b/Classes_Example3.py new file mode 100644 index 0000000..d2b6044 --- /dev/null +++ b/Classes_Example3.py @@ -0,0 +1,19 @@ +''' Python3 program to demonstrate working of a class''' + +class Example3: + + # A simple class + # attribute + attr1 = "Human" + attr2 = "Ayushi" + + # A sample method + def intro(self): + print("I'm ", self.attr1) + print("Hi, I'm ", self.attr2) + +Sentence = Example3() + +# Accessing class attributes and method through objects +print(Sentence.attr1) +Sentence.intro() diff --git a/Example1.py b/Example1.py new file mode 100644 index 0000000..6901bca --- /dev/null +++ b/Example1.py @@ -0,0 +1,13 @@ +'''All classes have a function called __init__(), + which is always executed when the class is being initiated + ''' + +class Example1: + def __init__(self, name, age): + self.name = name + self.age = age + +e1 = Example1("Ayushi", 20) + +print(e1.name) +print(e1.age) \ No newline at end of file diff --git a/Example2.py b/Example2.py new file mode 100644 index 0000000..f0c50ac --- /dev/null +++ b/Example2.py @@ -0,0 +1,19 @@ +'''Greetings to the person''' + +class Example2: + def __init__(self, name, age): + self.name = name + self.age = age + + def me(self): + print("Hello my name is " + self.name) + +e2 = Example2 ("Ayushi", 20) +e2.me() + + +'''to delete object properties''' +del e2.age + +'''to delete whole object''' +del e2 \ No newline at end of file diff --git a/Example3.py b/Example3.py new file mode 100644 index 0000000..d2b6044 --- /dev/null +++ b/Example3.py @@ -0,0 +1,19 @@ +''' Python3 program to demonstrate working of a class''' + +class Example3: + + # A simple class + # attribute + attr1 = "Human" + attr2 = "Ayushi" + + # A sample method + def intro(self): + print("I'm ", self.attr1) + print("Hi, I'm ", self.attr2) + +Sentence = Example3() + +# Accessing class attributes and method through objects +print(Sentence.attr1) +Sentence.intro() diff --git a/Example4.py b/Example4.py new file mode 100644 index 0000000..76e25eb --- /dev/null +++ b/Example4.py @@ -0,0 +1,40 @@ +#Call declaration program + +''' Python3 program to show that the variables with a value assigned in the class declaration, are class variables and variables inside methods and constructors are instance +variables.''' + + + +class Example4: + + # Class Variable + name = 'Human' + + + # The init method or constructor + def __init__(self,age, color): + + # Instance Variable + self.age = age + self.color = color + + + +# Objects of class +Sentence = Example4(20, "brown") +Sentence2 = Example4(20, "brown") + +print('Sentence details:') +print('She is: ', Sentence.name) +print('Age: ', Sentence.age) +print('Color: ', Sentence.color) + +print('\nSentence 2 details:') +print('He is: ', Sentence2.name) +print('Age: ', Sentence2.age) +print('Color: ', Sentence2.color) + +# Class variables can be accessed using class +# name also +print("\nAccessing class variable using class name") +print(Example4.name) diff --git a/External_Resources.md b/External_Resources.md new file mode 100644 index 0000000..dc53b4d --- /dev/null +++ b/External_Resources.md @@ -0,0 +1,16 @@ +# Learn Python for Beginners Free Resource + +#### Documentations +- SOURCE NAME : LINK +- w3schools : https://www.w3schools.com/python +- geeksforgeeks: https://www.geeksforgeeks.org/python-programming-language +- javatpoint : https://www.javatpoint.com/python-tutorial +- twilioquest : twilio.com/quest +#### Video/Playlist +| SOURCE NAME | LINK | +| ----------------- | --------------------------------------------------------- | +| FreeCodeCamp | [click here](https://youtu.be/rfscVS0vtbw) | +| CodeWithHarry | [click here](https://youtu.be/gfDE2a7MKjA) | +| ProgrammingwithMosh | [click here](https://youtu.be/_uQrJ0TkZlc) | +| Clever Programmer | [click here](https://youtu.be/4F2m91eKmts) | +| Edureka | [click here](https://youtu.be/WGJJIrtnfpk) | diff --git a/Greeting_program.py b/Greeting_program.py new file mode 100644 index 0000000..2cdc05b --- /dev/null +++ b/Greeting_program.py @@ -0,0 +1,19 @@ +'''Greetings to the person''' + +class Example2: + def __init__(self, name, age): + self.name = name + self.age = age + + def me(self): + print("Hello my name is " + self.name) + +e2 = Example2 ("Ayushi", 20) +e2.me() + + +'''to delete object properties''' +del e2.age + +'''to delete whole object''' +del e2 diff --git a/OOP_Example4.py b/OOP_Example4.py new file mode 100644 index 0000000..b3cda19 --- /dev/null +++ b/OOP_Example4.py @@ -0,0 +1,40 @@ +#Class declaration program + +''' Python3 program to show that the variables with a value assigned in the class declaration, are class variables and variables inside methods and constructors are instance +variables.''' + + + +class Example4: + + # Class Variable + name = 'Human' + + + # The init method or constructor + def __init__(self,age, color): + + # Instance Variable + self.age = age + self.color = color + + + +# Objects of class +Sentence = Example4(20, "brown") +Sentence2 = Example4(20, "brown") + +print('Sentence details:') +print('She is: ', Sentence.name) +print('Age: ', Sentence.age) +print('Color: ', Sentence.color) + +print('\nSentence 2 details:') +print('He is: ', Sentence2.name) +print('Age: ', Sentence2.age) +print('Color: ', Sentence2.color) + +# Class variables can be accessed using class +# name also +print("\nAccessing class variable using class name") +print(Example4.name) diff --git a/Obj_Cl.py b/Obj_Cl.py new file mode 100644 index 0000000..4a93b9f --- /dev/null +++ b/Obj_Cl.py @@ -0,0 +1,21 @@ +''' +Python is an Object Oriented Language +An Object Oriented Language contains Objects & Classes. + +Objects : They is an real life entity, that exists in real world. +Classes: They are group of Object. + +Classes can be of two types: Public or Private + +Default is Private + +''' +''' A program to make classes ''' +class Obj_Cl: + a = "Ayushi George" + +'''to mak object of the above class''' +a1= Obj_Cl() +print(a1.a) + + diff --git a/Python/Patrick Viafore - Robust Python_ Write Clean and Maintainable Code (2021, O'Reilly Media) - libgen.li.pdf b/Python/Patrick Viafore - Robust Python_ Write Clean and Maintainable Code (2021, O'Reilly Media) - libgen.li.pdf new file mode 100644 index 0000000..84eeb5d Binary files /dev/null and b/Python/Patrick Viafore - Robust Python_ Write Clean and Maintainable Code (2021, O'Reilly Media) - libgen.li.pdf differ diff --git a/Python/Python_Cheatsheet_Zero_To_Mastery_V1.05.pdf b/Python/Python_Cheatsheet_Zero_To_Mastery_V1.05.pdf new file mode 100644 index 0000000..5f020a5 Binary files /dev/null and b/Python/Python_Cheatsheet_Zero_To_Mastery_V1.05.pdf differ diff --git a/Python/books.md b/Python/books.md new file mode 100644 index 0000000..9fb233c --- /dev/null +++ b/Python/books.md @@ -0,0 +1,3 @@ +# books +> 1. [Python_Cheatsheet_Zero_To_Mastery](https://github.com/motton-briyani/python-bootcamp/blob/motton-briyani-patch-2/Python/Python_Cheatsheet_Zero_To_Mastery_V1.05.pdf) +> 2. [Robust Python](https://github.com/motton-briyani/python-bootcamp/blob/motton-briyani-patch-2/Python/Patrick%20Viafore%20-%20Robust%20Python_%20Write%20Clean%20and%20Maintainable%20Code%20(2021%2C%20O'Reilly%20Media)%20-%20libgen.li.pdf) diff --git a/Python/doc.md b/Python/doc.md new file mode 100644 index 0000000..12931b6 --- /dev/null +++ b/Python/doc.md @@ -0,0 +1,24 @@ +- [ ] Introduction +- [ ] Syntax +- [ ] Comments +- [ ] Variables + - [ ] Variable Names + - [ ] Variables - Assign Multiple Values + - [ ] Output Variables + - [ ] Global Variables + - [ ] Variable Exercises +- [ ] Data Types +- [ ] Numbers +- [ ] Casting +- [ ] Strings + - [ ] Slicing Strings + - [ ] Modify Strings + - [ ] String Concatenation + - [ ] Format - Strings + - [ ] Escape Characters + - [ ] String Methods +- [ ] Booleans +- [ ] Operators +- [ ] Lists + - [ ] Access List Items + - [ ] Change List Items diff --git a/README.md b/README.md index 545240a..9ebfb9c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,171 @@ -# python-bootcamp -Learn to code python in just 6 months + + +## Hey 👋 everyone , *hacktoberfest* is back with biggest beginners friendly opensource event. Event will start from 1st of October and will remain upto 31st October 2022 + +### What you need to do in this event? + +## You need to generate 4 valid pull request and want to contribute in opensource + +### let's discuss how you can contribute in *hacktoberfest 2022* 🙌 + +### Rules + +**1) Fork this repository first** + +**2) Star this repository⭐** + +**3) Create a new issue detailing what you want to add and create a branch from the issue** + +**4) Add your details in the CONTRIBUTING.md file⭐** + +**5) check for tags like `hacktoberfest` , `goofirstissue` or generate a new issue if you have some crazy ideas + +# Some Code Guidelines + +1. Variable name should be meaningful. +2. Use comments in your code. +3. Your Code must be pretty formated. + +### After a valid pull request your code will be carefully reviewed and if it matches the rule then it will be accepted otherwise you need to generate a new file + +

🐍 PYTHON BOOTCAMP 🐍

+ + +

+Learn to code python in just 6 months +

+ +

+ + Be a part of our Community on Discord 🚀 + + +
+ +

+ +## The topics covered in this course are: + +- Programming Fundamentals +- Python Basics +- Python Fundamentals +- Data Structures +- Object Oriented Programming with Python +- Functional Programming with Python +- Lambdas +- Decorators +- Generators +- Testing in Python +- Debugging +- Error Handling +- Regular Expressions +- Comprehensions +- Modules +- Virtual Environments +- Developer Environments (PyCharm, Jupyter Notebooks, VS Code, Sublime Text + more) +- File Processing: Image, CSV, PDFs, Text + more +- Web Development with Python +- Machine Learning with Python +- Data Science with Python +- Automation with Python and Selenium +- Scripting with Python +- Web Scraping with Python and BeautifulSoup +- Image Detection +- Data Visualizations +- Kaggle, Pandas, NumPy, scikit-learn +- Email and SMS with Python +- Working with APIs (Twitter Bot, Password Checker, Translator) + +

✨OUR VALUABLE CONTRIBUTORS✨

+

+ + + +

+
+
+ + +

Contribution Guidelines 🏗

+ +If you wish to contribute, we highly recommend following the guidelines mentioned below. + +**1.** Fork [this](https://github.com/hackbeats/python-bootcamp) repository. + +**2.** Clone your forked copy of the project. + +```bash + git clone git@github.com:hackbeats/python-bootcamp.git +``` + +**3.** Navigate to the project directory. +``` + cd python-bootcamp +``` + +**4.** Create a new branch: +``` + git checkout -b YourBranchName +``` + +**5.** Make changes in source code. + +**6.** Stage your changes and commit + +``` + git add . + git commit -m "" +``` + +**7.** Push your local commits to the remote repo. + +``` + git push origin YourBranchName +``` + +**8.** Create a [PR](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request) + +**Note:** If anyone contributes to this repository, the changes will not be reflected in your local repository. For that: + +**9.** Setup a reference(remote) to the original repository to get all the changes from the remote. +``` + git remote add upstream git@github.com:hackbeats/python-bootcamp.git +``` + +**10.** Check the remotes for this repository. +``` + git remote -v +``` + +**11.** Fetching from the remote repository will bring in its branches and their respective commits. +``` + git fetch upstream +``` + +**12.** Make sure that you're on your master branch. +``` + git checkout main +``` + +**13.** Now that you have fetched the upstream repository, you can merge its changes into our local branch. This will bring that branch into sync with the upstream, without losing the local changes. +``` + git merge upstream/main +``` + +

Code of Conduct 📜

+ + +We welcome all kinds of positive contributions helping us to improve and grow the project. + +If you wish to contribute, you can work on any issues [listed here](https://github.com/hackbeats/python-bootcamp/issues) or create one on your own. After adding your code, please send us a Pull Request. + +> Please read [` Guidelines for Contributing`](CONTRIBUTING.md) and [`CODE OF CONDUCT`](CODE_OF_CONDUCT.md) to understand the process for submitting pull requests to us and comply to code of conduct. + + + +
+ + +This project is licensed under the [**MIT license**](https://github.com/Rick-mad-lab/python-bootcamp/blob/main/LICENSE). + +```© 2022 Hack Beats and contributors``` diff --git a/ROADMAP.md b/ROADMAP.md index ba66dda..b16e824 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1 +1,65 @@ -## still in progress +# Python Developer Roadmap + +## Level 0: For New Programmers + +If you are new to the programming world then in the initial week, just begin with learning text editors, IDEs, computer network basics, etc. + +## Level 1: Basics of Python + + + +## Level 2: Intermediate Python + + + +## Level 3: Frameworks & Libraries + + + +## Level 4 : Start developing Projects + + diff --git a/books/books.md b/books/books.md new file mode 100644 index 0000000..185cbbb --- /dev/null +++ b/books/books.md @@ -0,0 +1 @@ +# books