First import nessary things like
from kivy.lang import Builder
from kivymd.app import MDApp
from kivymd.uix.screen import MDScreen| section .text | |
| global _start | |
| section .data | |
| msg db 'Hello, world!',0xa ;our dear string | |
| len equ $ - msg ;length of our dear string | |
| section .text | |
| ; linker puts the entry point here: |
| class Stack: | |
| def __init__(self): | |
| self.list= list() | |
| def push(self, element): | |
| self.list.append(element) | |
| def pushMany(self, *args): | |
| self.list.extend(args) | |
| def pop(self): | |
| if (len(self.list) == 0): | |
| print("Cannot pop element, stack is empty") |
| import math | |
| """ | |
| Use of New_Math class | |
| Use of round() function | |
| It round off value to its nearest integer in a limited range | |
| >>> from Lib.main import * | |
| >>> new_math.round(8.9) | |
| 9 |