🧠 Python-scripts-collection
This is a collection of short Python scripts to solve and automate tasks and simplify any work.
https://github.com/fnplus/Python-scripts-collection
@pythonl
This is a collection of short Python scripts to solve and automate tasks and simplify any work.
https://github.com/fnplus/Python-scripts-collection
@pythonl
👍22
  Convert List of Lists to CSV File in Python
https://www.pythonforbeginners.com/lists/convert-list-of-lists-to-csv-file-in-python
@pythonl
https://www.pythonforbeginners.com/lists/convert-list-of-lists-to-csv-file-in-python
@pythonl
👍21🎉2
  This media is not supported in your browser
    VIEW IN TELEGRAM
  📊 Alive-progress on Python
letters = [chr(ord('A') + x) for x in range(26)]
with alive_bar(26, dual_line=True, title='Alphabet') as bar:
for c in letters:
bar.text = f'-> Teaching the letter: {c}, please wait...'
if c in 'HKWZ':
print(f'fail "{c}", retry later')
time.sleep(0.3)
bar()
Alphabet |███████████████████████████▊ | ▃▅▇ 18/26 [69%] in 6s (3.2/s, eta: 3s)
-> Teaching the letter: S, please wait...
Git: https://github.com/rsalmei/alive-progress
@pythonl
letters = [chr(ord('A') + x) for x in range(26)]
with alive_bar(26, dual_line=True, title='Alphabet') as bar:
for c in letters:
bar.text = f'-> Teaching the letter: {c}, please wait...'
if c in 'HKWZ':
print(f'fail "{c}", retry later')
time.sleep(0.3)
bar()
Alphabet |███████████████████████████▊ | ▃▅▇ 18/26 [69%] in 6s (3.2/s, eta: 3s)
-> Teaching the letter: S, please wait...
Git: https://github.com/rsalmei/alive-progress
@pythonl
👍18
  Python 101 - Creating Multiple Threads
https://www.blog.pythonlibrary.org/2022/04/26/python-101-creating-multiple-threads/
@pythonl
https://www.blog.pythonlibrary.org/2022/04/26/python-101-creating-multiple-threads/
@pythonl
👍18
  Introduction to Linear Programming in Python
https://mlabonne.github.io/blog/linearoptimization/
@pythonl
https://mlabonne.github.io/blog/linearoptimization/
@pythonl
👍5
  👎101👍12😁3
  Python Dictionary fromkeys()
https://www.programiz.com/python-programming/methods/dictionary/fromkeys
@pythonl
https://www.programiz.com/python-programming/methods/dictionary/fromkeys
@pythonl
👍6❤5👎1
  👍21🔥5
  What will be the output of the following code?
  Anonymous Quiz
    56%
    4
      
    12%
    3
      
    3%
    0
      
    5%
    1
      
    9%
    None
      
    15%
    Error
      
    👍31❤3👎3😱3
  How to Shuffle a Generator in Python…Without Converting to a List
https://thepythoncodingbook.com/2022/05/21/shuffle-a-generator-in-python-without-using-a-list/
@pythonl
https://thepythoncodingbook.com/2022/05/21/shuffle-a-generator-in-python-without-using-a-list/
@pythonl
❤7👍3
  ✔️ Check For Sorted List in Python
https://www.pythonforbeginners.com/lists/check-for-sorted-list-in-python
@pythonl
https://www.pythonforbeginners.com/lists/check-for-sorted-list-in-python
@pythonl
👍6👎1
  