# Search results

1. ### Python Check whether a whole number plus Numeric Numbe

That's the easiest approach
2. ### Python Check whether a whole number plus Numeric Numbe

The code could be written to remove the decimal if it is a 0. It's just a basic example. Nothing more.
3. ### Python Check whether a whole number plus Numeric Numbe

Does it not also qualify as a float or decimal?
4. ### Python Check whether a whole number plus Numeric Numbe

A basic example of the case use. Doesn't handle operations if in a string such as 6+2 def wholenumber(arg): match arg: case int(arg): return True case float(arg): return False case str(arg): if arg.isdigit() and type(int(arg)) ==...
5. ### Python Check whether a whole number plus Numeric Numbe

I agree 5.0 is a whole number but, python sees a float. It cound be rounded or some other method to remove the decimal and be made a whole number. As for the string 6+4, could probably spit the string and covert to int and then add and return the sum.
6. ### Python Check whether a whole number plus Numeric Numbe

Explain please. I'm always open to input.

8. ### Need help for applying simple font-style

I changed this font-style: var(--heading-font); to font-family: var(--heading-font); and it changed the font font-style - CSS: Cascading Style Sheets | MDN
9. ### Python Check whether a whole number plus Numeric Numbe

One way def check(arg): if isinstance(arg, str) and arg.isdigit(): print(f'{arg} is a whole number') elif isinstance(arg, int): print(f'{arg} is a whole number') else: print(f'{arg} is not a whole number') check(5) check(5.0) check(6+3) check('88')...
10. ### How to iterate through directories and sub-directories?

That does not look like python language
11. ### JavaScript Find The Length Of A String

I would recommend visual studio code. You will need Node.js installed as visual studio uses it. I use Ubuntu and run visual studio for all the coding I do. Python, javascript, php, and c languages. Even has an html view (which I don't really like that well). I usually just open it in the browser...
12. ### JavaScript Find The Length Of A String

if you want length of string you will need to change string.length to word.length. Word has the characters. Basic example const word = 'some word' const stringlength = word.length console.log('String length is ' + stringlength + ' charcters long.') output String length is 9 charcters long.
13. ### How can I make my form fields mandatory?

From w3schools: The required attribute is a boolean attribute. When present, it specifies that an input field must be filled out before submitting the form. Note: The required attribute works with the following input types: text, search, url, tel, email, password, date pickers, number, checkbox...
14. ### Python Python gettext – I am afraid I do not know how to use that.

Have you tried the docs?
15. ### Problem with centering div within div ?

put margin: auto; in the outer-box css
16. ### Python PoS system

Here is an example of one way it could be done. It will create a test database but, no tables are created and no database functions. Purely for example only. import tkinter as tk from tkinter import messagebox import sqlite3 as sq class Model: def __init__(self): db = 'test.db'...
17. ### Python PoS system

Although not implemented using tkinter, here is a link to practice script on the forum I wrote a few years ago. Maybe it will help you. It doesn't use sqlite3 either but, both could easily implementeed.
18. ### Python PoS system

Sorry but, this code will not do anything on its own. Is this the complete code? Sorry, Just realized that this was a link
19. ### Feedback New forum colors

Just my opinion but, if going with the dark blue background, I think maybe a charcoal or light gray for the highlights
20. ### Python Number Hi-Low game.

My advice would be to buy a book. Doesn't have to be an expensive book. Learn all the basic syntax such as print, how to define variables, basic functions. Once you get a understanding then move on how to create functions, classes, and many other aspects of the language. There are many online...