Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/codebasics/py into master
Browse files Browse the repository at this point in the history
  • Loading branch information
codebasics committed Mar 23, 2021
2 parents abab5ab + 8d0ea30 commit 21a0f10
Show file tree
Hide file tree
Showing 108 changed files with 480 additions and 4,908 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
**/.idea/
.ipynb_checkpoints/
**/.ipynb_checkpoints/
**/.cache/
**/.cache/
.vscode
Empty file.
14 changes: 0 additions & 14 deletions Algorithms/1_BinarySearch/binary_search_exercise.md

This file was deleted.

62 changes: 0 additions & 62 deletions Algorithms/1_BinarySearch/binary_search_exercise_solution.py

This file was deleted.

55 changes: 0 additions & 55 deletions Algorithms/1_BinarySearch/binarysearch.py

This file was deleted.

9 changes: 0 additions & 9 deletions Algorithms/1_BinarySearch/util.py

This file was deleted.

25 changes: 0 additions & 25 deletions Algorithms/2_BubbleSort/bubble_sort.py

This file was deleted.

40 changes: 0 additions & 40 deletions Algorithms/2_BubbleSort/bubble_sort_exercise.md

This file was deleted.

28 changes: 0 additions & 28 deletions Algorithms/2_BubbleSort/bubble_sort_exercise_solution.py

This file was deleted.

53 changes: 0 additions & 53 deletions Algorithms/3_QuickSort/quick_sort.py

This file was deleted.

8 changes: 0 additions & 8 deletions Algorithms/3_QuickSort/quick_sort_exercise.md

This file was deleted.

44 changes: 0 additions & 44 deletions Algorithms/3_QuickSort/quick_sort_exercise_soluiton_lomuto.py

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ if input is 4 then it should print
```
Basically number of lines it prints is equal to that number. (Hint: you need to use two for loops)

[Solution](https://github.com/codebasics/py/blob/master/Basics/Hindi/8_functions/Exercise/8_functions_exercise.py)
[Solution](https://github.com/codebasics/py/blob/master/Basics/Exercise/10_functions/10_functions_exercise.py)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
2. remove: when user inputs remove it should ask for a country to remove. If country exist in our dictionary then remove it and print new dictionary using format shown above in (a). Else print that country doesn't exist!
3. query: on this again ask user for which country he or she wants to query. When user inputs that country it will print population of that country.
[Solution](https://github.com/codebasics/py/blob/master/Basics/Hindi/11_dict_tuple/Exercise/11_dict_exercise_1_country_population.py)
[Solution](https://github.com/codebasics/py/blob/master/Basics/Exercise/11_dict_tuples/11_dict_exercise_1_country_population.py)
2. You are given following list of stocks and their prices in last 3 days,
Expand All @@ -40,8 +40,8 @@
```
2. add: When user enters 'add', it asks for stock ticker and price. If stock already exist in your list (like info, ril etc) then it will append the price to the list. Otherwise it will create new entry in your dictionary. For example entering 'tata' and 560 will add tata ==> [560] to the dictionary of stocks.
[Solution](https://github.com/codebasics/py/blob/master/Basics/Hindi/11_dict_tuple/Exercise/11_dict_exercise_2_stocks.py)
[Solution](https://github.com/codebasics/py/blob/master/Basics/Exercise/11_dict_tuples/11_dict_exercise_2_stocks.py)
3. Write circle_calc() function that takes radius of a circle as an input from user and then it calculates and returns area, circumference and diameter. You should get these values in your main program by calling circle_calc function and then print them
[Solution](https://github.com/codebasics/py/blob/master/Basics/Hindi/11_dict_tuple/Exercise/11_dict_exercise_3_circle.py)
[Solution](https://github.com/codebasics/py/blob/master/Basics/Exercise/11_dict_tuples/11_dict_exercise_3_circle.py)
Loading

0 comments on commit 21a0f10

Please sign in to comment.