Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. menator01

    How to iterate through directories and sub-directories?

    That does not look like python language
  2. menator01

    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...
  3. menator01

    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.
  4. menator01

    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...
  5. menator01

    Problem with centering div within div ?

    put margin: auto; in the outer-box css
  6. menator01

    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'...
  7. menator01

    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.
  8. menator01

    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
  9. menator01

    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
  10. menator01

    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...
  11. menator01

    Python Number Hi-Low game.

    This probably should be its own thread. It has nothing to do with original post. Would an admin or moderator split the thread please?
  12. menator01

    Python Number Hi-Low game.

    Please use proper tags when posting. In my opinion you would be better off using classes for your project. Here is a quick example of one way doing it customers = [] class Store: sales_tax = 0.088 def __init__(self): self.items = {} def add_item(self, item, price)...
  13. menator01

    Python Number Hi-Low game.

    My original post description has the purpose. Started as a number guessing but changed to a hi low game. Just trying to see if anyone wants to add or improve the game. There is no real purpose.
  14. menator01

    Python Number Hi-Low game.

    The final version. Could be made better. some repetitive code needs replaced with functions. # Do the imports from pandas import DataFrame as df from tabulate import tabulate as tb from random import randint import os def clear(): os.system('cls' if os.name == 'nt' else 'clear') def...
  15. menator01

    Python Number Hi-Low game.

    Been a while since posting so, I though I would get a number guessing game started and see if anyone wants to add to it. Change re-arrange or whatever needed. I've done several just thought I would try and get some kind of community group thing going. Sorry if I've posted this under the wrong...
  16. menator01

    social icons not showing on website page

    Show where the classes are defined. You show div classes but not where they are defined or included.
  17. menator01

    Python Compiles Python code with no error but giving out no output - what's wrong with it?

    On my windows box right now Device name DESKTOP-E0UK08H Processor Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz 3.70 GHz Installed RAM 32.0 GB System type 64-bit operating system, x64-based processor Display Resolution 2560x1440 Graphics Radeon RX 580 Series
  18. menator01

    Python Compiles Python code with no error but giving out no output - what's wrong with it?

    What is the expected output? This is what I get. Output: The predicted next string is: 2 2 2 2 2 2 2 2 2 2 2 2
Back
Top Bottom