In this series, we cover some basic Python numerical operators with precise numbers (int and float). This is a small part of a numpy series and by the end of this tutorial, you’ll be able to solve some basic sums from your console or IDE(highly recommend).

Operators for arithmetic sums: addition, subtraction, division and floor division

a = 3
b = 2










The division quotient above returns a value of .1f (one decimal point) which is represented as type() = float .

Floor division: makes the division and rounds off the…

A mini-guide to string data types, methods

Programming in python can be a surprisingly handy tool to boost any skill stack, from performing tedious calculations to generating performance reports. In this series, we’ll condense and go thru’ handling string data. If you fancy a challenging task, hop on the py-bandwagon and start with a suitable IDE.

An IDE or integrated development environment and learning environment provide the interactive shell that compiles code through a basic graphical user interface. Without emphasizing enough, there are various IDEs and code editor plugins that can make programming easier.


  • Assigning a variable
  • String Type
  • Str attributes
  • String indexing (slice and dice)

Don’t skip on nested python string functions {}!

In basic string methods, we went about ways to wrangle the types of string data and how (+ and ,) operators. In an ideal situation, string-ifying doesn’t have to be merely mechanical process. This snippet will show how nested data structures go better with f-string functions.


  • str.format()
  • what f-strings can do
  • dict lists
  • conclusion

str.format() — plain and simple

A familiar approach to fill out string data is with plain formatting. The str.format(strvalue1, strvalue2) specify values as arguments. Formatting strings makes placeholder values more flexible while keeping string values fixed.

>>>model_no = “version number”
>>>quantity = 2
>>>price =…

An standalone app suitable for complimenting e-learning web applications.

If your teaching resources include HTML-based script such as formulas, this tutorial will show you how to easily tabulate content with the list of widget components from Jupyter notebook module — ipywidgets and deploy using Voilà and ngrok.

In this tutorial, you will be able to apply and share an elementary-level assessment quiz app that allows user to get interactions with a single click. The examples below include multiple-option, input, diagrams, formulas and answer key functions.


widgets, Layout, Box, GridspecLayout

Create a basic mcq widget function:

Assign and specify the variables within the ‘multipleChoice_widget’ function with the question…

Dan ljy

Contributor on the py-bandwagon

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store