Рубрики
Без рубрики

[ Binxter Articture Reverender] Как начать с Python?

Не знаю, с чего начать учиться Python? Проверьте двигатель Рекомендации статьи Finxter: просто запустите код Python и ответьте на вопросы. Затем двигатель рекомендует лучшие статьи для вас, которые соответствуют вашему уровню навыков: ” ” ” Shinxter Учебник Рекомендаемый двигатель Выполните этот скрипт Python в Import WebBrowser WebBrowser Python Shell … [Рекомендуемая статья Finxter] Как начать работать с Python? Подробнее “

Автор оригинала: Chris.

Не знаю, с чего начать учиться Python? Проверьте двигатель Рекомендации статьи Finxter: просто запустите код Python и ответьте на вопросы. Затем двигатель рекомендует лучшие статьи для вас, которые соответствуют вашему уровню навыков:

'''FINXTER TUTORIAL RECOMMENDATION ENGINE
Execute This Python Script in a Python Shell'''

import webbrowser

# questions
experience = int(input("Guess your Python experience level (0: beginner, 10: master)\nType a number (0-10)\n"))
books = int(input("How many coding books have you read? Guess!\nType a number (0-999)\n"))
fun = int(input("How much fun is coding for you?\nType a number (0-10) -- 10 means a lot\n"))
money = int(input("How much do you plan to earn with Python (US-$ per month)?\nType a number (0-100000)\n"))
freelancer = int(input("Do you want to become a Python freelancer?\nType a number (0,1)\n"))
brain = int(input("Do you love productivity tips?\nType a number (0,1)\n"))
job = int(input("Do you want to get a Python job?\nType a number (0,1)\n"))
dataScience = int(input("Do you dream of becoming a data scientist?\nType a number (0,1)\n"))


'''
# hard-coded
experience = 0
books = 1
fun = 5
money = 10000
freelancer = 0
brain = 1
job = 1
dataScience = 1
'''

articles = {"Freelancer": "https://blog.finxter.com/how-to-earn-1000-on-the-side-as-a-python-freelancer-a-step-by-step-tutorial/",
            "Python Crash Course": "https://blog.finxter.com/python-crash-course/",
            "Python Interview": "https://blog.finxter.com/python-interview-questions/",
            "AI": "https://blog.finxter.com/artificial-intelligence-machine-learning-deep-learning-and-data-science-whats-the-difference/",
            "Books": "https://blog.finxter.com/free-python-books/",
            "Intelligence": "https://blog.finxter.com/how-to-boost-your-intelligence-10-tips-from-science/",
            "Webinar": "https://blog.finxter.com/webinar-freelancer/",
            "Dictionary": "https://blog.finxter.com/python-dictionary/",
            "OneLiner": "https://blog.finxter.com/10-python-one-liners/",
            }

scores = {key:0 for key in articles}

def update(key, prob):
    scores[key] += prob / 6
    

# experience
update("Freelancer", 100)
update("Python Crash Course", 100 - 10 * experience)
update("Python Interview", 10 * experience)
update("AI", 70 if experience >= 3 else 100)
update("Books", 100)
update("Intelligence", 100)
update("Webinar", 100)
update("Dictionary", 50 if experience >= 3 else 100)
update("OneLiner", 10 * experience)

# projects (ignore)

# books
update("Freelancer", 100)
update("Python Crash Course", 100)
update("Python Interview", 100)
update("AI", 100)
update("Books", 100 if books > 2 else 30)
update("Intelligence", 100)
update("Webinar", 100)
update("Dictionary", 100)
update("OneLiner", 100)

# fun (ignore)

# money
update("Freelancer", 100 if money > 500 else 0)
update("Python Crash Course", 100)
update("Python Interview", 100 if money > 500 else 0)
update("AI", 100)
update("Books", 100)
update("Intelligence", 100)
update("Webinar", 100 if money > 500 else 0)
update("Dictionary", 100)
update("OneLiner", 100)

# freelancer
update("Freelancer", 100 if freelancer==1 else 0)
update("Python Crash Course", 100)
update("Python Interview", 100)
update("AI", 100)
update("Books", 100)
update("Intelligence", 100)
update("Webinar", 100 if freelancer==1 else 0)
update("Dictionary", 100)
update("OneLiner", 100)

# job
update("Freelancer", 100)
update("Python Crash Course", 100)
update("Python Interview", 100 if job==1 else 0)
update("AI", 100)
update("Books", 100)
update("Intelligence", 100)
update("Webinar", 100)
update("Dictionary", 100)
update("OneLiner", 100)

# data science
update("Freelancer", 100)
update("Python Crash Course", 100)
update("Python Interview", 100)
update("AI", 100 if dataScience==1 else 0)
update("Books", 100)
update("Intelligence", 100)
update("Webinar", 100)
update("Dictionary", 100)
update("OneLiner", 100)


##
# EVALUATE RESULT
##
recommendations = list(scores.items())
recommendations = sorted(recommendations, key=lambda x: x[1])[::-1]

print()
print("Top Recommended Articles: ")
tmp_dic = {}
i = 0
for k, v in recommendations:
    output = " " if v != 100 else ""
    output += str(round(v)) + "%\t" + "[" + str(i) + "]" + str(k)
    print(output)
    tmp_dic[i] = articles[k]
    i = i + 1

while True:
    read_number = input("Type article number to open: (0-9) ")
    webbrowser.open(tmp_dic[int(read_number)])
    print(tmp_dic[int(read_number)])

Вы также можете скопировать и вставить сценарий Python в свой собственный файл кода и выполнить его на вашем компьютере. 😊.

Файл кода откроет статьи непосредственно в вашем браузере. К сожалению, это невозможно в оболочке на основе браузера выше.

Работая в качестве исследователя в распределенных системах, доктор Кристиан Майер нашел свою любовь к учению студентов компьютерных наук.

Чтобы помочь студентам достичь более высоких уровней успеха Python, он основал сайт программирования образования Finxter.com Отказ Он автор популярной книги программирования Python одноклассники (Nostarch 2020), Coauthor of Кофе-брейк Python Серия самооставленных книг, энтузиаста компьютерных наук, Фрилансера и владелец одного из лучших 10 крупнейших Питон блоги по всему миру.

Его страсти пишут, чтение и кодирование. Но его величайшая страсть состоит в том, чтобы служить стремлению кодер через Finxter и помогать им повысить свои навыки. Вы можете присоединиться к его бесплатной академии электронной почты здесь.

Оригинал: “https://blog.finxter.com/finxter-article-recommender-how-to-get-started-with-python/”