↓ Skip to Main Content
Useful code Programming with VBA, C# and Python

Main Navigation

  • All
  • VBA
    • VBA Tools
    • VBA Online Resources
    • All VBA articles
  • Python
  • Else
    • C#
  • Reviews
    • List of reviews
  • YouTube
  • PayPal
  • About
Useful code Programming with VBA, C# and Python

Off Canvas Menu

  • All
  • VBA
    • VBA Tools
    • VBA Online Resources
    • All VBA articles
  • Python
  • Else
    • C#
  • Reviews
    • List of reviews
  • YouTube
  • PayPal
  • About

Month: July 2022

Home › 2022 › July
Python – Init a class with a default list property correctly
Python

Python – Init a class with a default list property correctly

Vitosh Jul 28, 2022 Tagged with bug, default list, error, init class, Python

Sometimes, (but only sometimes) we think that writing too much code is useless and writing less code in python is more readable and performs faster. While in the general case this is true, this article is simply going to show …

Python – Init a class with a default list property correctly Read more →

Python – Reading and writing to the console
Python

Python – Reading and writing to the console

Vitosh Jul 27, 2022 Tagged with input, output, Read, read 3 variables, Write

Reading from the console and writing to it is a piece of cake in python. These two functions do it for you perfectly: a = input() print(a) Then why am I writing a whole article about it? Well, there is …

Python – Reading and writing to the console Read more →

Python – Enumerate Lists in a Loop
Python

Python – Enumerate Lists in a Loop

Vitosh Jul 23, 2022 Tagged with enum, enumerate, List, loop, Python

Plenty of times, when you are looping with a for-each loop in python, you somehow realize that you need a counter. Then you most probably write something ugly like this one: a = 0 for count_value in my_odd_squares: a = …

Python – Enumerate Lists in a Loop Read more →

Python – Write a DataFrame or List to multiple tabs in Excel
Python, VBA \ Excel

Python – Write a DataFrame or List to multiple tabs in Excel

Vitosh Jul 11, 2022 Tagged with dataframe, Excel, List, multiple sheets, multiple tabs, Write to Excel

The idea of the article is to provide a Python code that does the following: Takes a list or DataFrame; Splits it into quite a few smaller parts; Writes each one on a separate Excel worksheet; Pretty much like this: …

Python – Write a DataFrame or List to multiple tabs in Excel Read more →

Copyright © 2026 VitoshAcademy