GithubHelp home page GithubHelp logo

asabeneh / 30-days-of-python Goto Github PK

View Code? Open in Web Editor NEW
32.5K 32.5K 6.6K 27.26 MB

30 days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than100 days, follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw

Python 94.69% CSS 2.74% HTML 2.55% Procfile 0.02%
30-days-of-python flask github heroku matplotlib mongodb numpy pandas python python3

30-days-of-python's Issues

Day 4: Strings

In the find() example
if find() returns the position first occurrence of 'y', then shouldn't it return 5 instead of 16?

DAY 17 PACKING DICTIONARIE u forgot f format at print

your code
def packing_person_info(**kwargs):
for key in kwargs:
print("{key} = {kwargs[key]}")
return kwargs

print(packing_person_info(name="Asabeneh",
country="Finland", city="Helsinki", age=250))

my suggestion replace ur print with print(f"{key}={kwargs[key]})

Nice work

You've helped me a lot in learning .py

nested if issue

`I am a beginner who is still learning how to use python syntax.I tried to write codes using if conditions as exercising but I had an issue.
the idea of the code is to write a program that allows the user to enter his country and the course he wants to apply for then the program will give him a discount regarding this information.

issue: the issue is every time I write ksa as the input it gives me a discount for Canada and I don't know why.
if1
if2

No code of conduct and contributing files in the root repo

Both the `code_of_conduct.md and contributing.md file are a most of a project.
The help contributors how the owner/org. want commits to be done and rules to be followed when wanting a pull request.
I can work on them, if assigned to me.

Day 17 markdown correction

There is an error in the example code of Day 17 docPacking Dictionaries part

The string object should be formatted in this way or it will not print the content of the dictionary object.

def packing_person_info(**kwargs):
    for key in kwargs:
        #print("{key} = {kwargs[key]}")
        print(f'{key} = {kwargs[key]}')
    return kwargs

print(packing_person_info(name="Asabeneh",
      country="Finland", city="Helsinki", age=250))

Day 19 - Line 199 and 202

199
if os.path.exist('./files/example.txt'):
->
if os.path.exists('./files/example.txt'):

202
os.remove('The file does not exist')
->
print('The file does not exist')

I'm a new learner so if I'm wrong please forgive me.

No license file

The license.md file helps with how your files can be edited and even forked also, guides how pull request can be done on your main branch.
It should be added.
I can work on it.

Day 7 wrong pop method description

fruits.pop() # removes the last element from the set

from the doc
-->Remove and return an arbitrary element from the set. Raises KeyError if the set is empty.

Day 3 - Exercise 15 - What is the question?

Hey Author.
Great job done. No words to thank you.
I am unable to under what are we supposed to do in exercise 15 of day 3. It doesn't ask us to do anything. Can you please look into it.

There is a mistake

Error message:
Traceback (most recent call last):
File "**/Asabeneh_30-Days-Of-Python/04_Day_Strings/day_4.py", line 171, in
print(challenge.digit()) # True
AttributeError: 'str' object has no attribute 'digit'

This side should be isdigit()

Bug in code loop example

hey Asabeneh ,

https://github.com/Asabeneh/30-Days-Of-Python/blob/master/10_Day_Loops/10_loops.md
on this day you write a example of continue in loop

count = 0
while count < 5:
    if count == 3:
        continue
    print(count)
    count = count + 1

you say about result "The above while loop only prints 0, 1, 2 and 4 (skips 3)."
but result is infinite loop after print 2 because you don't add to count anything in if block

count = 0
while count < 5:
    if count == 3:
        count = count + 1
        continue
    print(count)
    count = count + 1

thanks you for share this good resource for learning python .

Hi Asabeneh,

I have not been able to do the course for some time now due to unforeseen circumstances, but I am now ready and willing to commit. I hope I can still get into this course and do my best and complete it. Please let me know if there are any issues. If not I'm going full steam ahead. I hope you are ready for all my questions 😃

Kind regards,
Aaron Kennedy.

Day 17: Spot a typo error

On line 4 it is *lst_one and *lst_two
Not *list_one and *list_two. Because the variables created on lines 2 and 3 is not not list_one or list_two but lst_one and lst_two

Adding something

# Third Example about unpacking list
countries = ['Germany', 'France','Belgium','Sweden','Denmark','Finland','Norway','Iceland','Estonia']
gr, fr, bg, sw, *scandic, es = countries
print(gr) #Germany
print(fr) #France
print(bg) #Belgium
print(sw) #Sweden 
print(scandic) #[Denmark,Finland,Norway,Iceland]
print(es) #Estonia

V

V

Day 23 - Virtual Environment

To Whom This May Concern,

Thank you for creating and sharing the materials.

Could you please verify that in day 23 - virtual environment, to create virtual environment for Windows, should use "C:\Users\User\Documents\30DaysOfPython\flask_project>py -m venv venv", not "python3"?

Thanks.

Regards,

Day18 - Exercises: Level 1, task 2 - Major Error

The position of some particles on the horizontal x-axis are -12, -4, -3 and -1 in the negative direction, 0 at origin, 4 and 8 in the positive direction

points = ['-1', '2', '-4', '-3', '-1', '0', '4', '8']
sorted_points = [-4, -3, -1, -1, 0, 2, 4, 8]
distance = 8 -(-4) # 12

In points there should be -12 instead of -1 and 2, thus the provided answer is completly wrong

Thanks for great course and keep up the good work ;)

(PS also minor typo in day 15: ImportError Example 1: TypeError)

Typo in Intro

Right in the first paragraph you mention "month pythons..." the comedy skit. I believe you meant "Monty"

Greetings!

Thank you for your help? This types of help is unteachable forever.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.