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. skifli

    Python interview question already done just need help reviewing

    Also @ibk101, your code actually does not solve the problem. Because in the function 'data_to_html_table', you use an if, elif, elif, else structure, if one statements is true, none of the other statements are run. This is fine if the number is 10. However, if the number is 30, it will only have...
  2. skifli

    Feedback for Unity game

    It works for me, so I think it is your computer.
  3. skifli

    Python How do I run this project?

    Setting up the environment to use the program. - Install ffmpeg (website here). - Download latest version of code from here. - Unzip code, and navigate to the unzipped folder. - Open a command prompt in the unzipped folder. - Run this command 'pip install -r requirements.txt'. - Download this...
  4. skifli

    Python interview question already done just need help reviewing

    Hi @ibk101, Your code does a lot of things that aren't needed. I re-wrote your code to be more concise. The generated HTML will be written to a file called 'nums.html' in the current directory. with open("nums.html", "a") as html: html.write("<!DOCTYPE html>\n<html>\n <body>\n")...
  5. skifli

    How can I create desktop applications from html

    He said he doesn't want to use Electron in his original post.
  6. skifli

    Python Feedback on a program I made.

    If it still doesn't work, please include the output on the two terminal windows which should open.
  7. skifli

    Python Feedback on a program I made.

    Try re-downloading the latest version of the code from the releases page.
  8. skifli

    Python Feedback on a program I made.

    I'm not sure why that happens. It works fine for me.
  9. skifli

    Ooh, the new CodeForum style looks nice.

    Ooh, the new CodeForum style looks nice.
  10. skifli

    age = int(input("Enter your age: ")) print(f"You are {age * 7} dog year(s) old.\nYou are {15 if...

    age = int(input("Enter your age: ")) print(f"You are {age * 7} dog year(s) old.\nYou are {15 if age == 1 else 24 if age == 2 else 24 + (age - 2) * 4} cat year(s) old.") According to https://www.almanac.com/cat-age-chart-cat-years-human-years for cats and that 1 human year equals 7 dog years.
  11. skifli

    Python Help with screen recording code.

    I have the following code to record a screen in Python. However, the video generated is much faster than the record speed. Does anyone know how to slow the recording speed down? from cv2 import VideoWriter, VideoWriter_fourcc, namedWindow, WINDOW_NORMAL, cvtColor, COLOR_BGR2RGB, imshow...
  12. skifli

    Python Feedback on a program I made.

    No, when you run the program it will open a webpage in your default browser to upload files. It will look something like this:
  13. skifli

    Python Feedback on a program I made.

    Yeah, as I said in a previous message I've updated the code with a fix. There is a new file called PLACEHODER in 'src/uploads/' that gets deleted when you run the script. Redownload the files and it should now work.
  14. skifli

    Python Feedback on a program I made.

    I've updated the code with a fix. When I update the code, I make sure the /uploads folder is empty of all files from testing the server. However, since it is empty Github doesn't bother adding the folder to the repository. At line 128, where the error occurred, PHP tries to search for all files...
  15. skifli

    Python Feedback on a program I made.

    You should see it now.
  16. skifli

    Python Feedback on a program I made.

    Yes, it's only for Windows currently.
  17. skifli

    Python Feedback on a program I made.

    Hi CF, I would like to ask for feedback on a project of mine I made in Python & PHP. It is a program that allows you to wirelessly share files with other devices on your network. Any device that can access the webpage for the server can upload and downloads files. Github...
  18. skifli

    Python Strings to Lists

    def strLetters(myStr): myList = [] # For every item in the list. for index in range(0, len(myStr) - 1): # If the character is uppercase, pass. if myStr[index].isupper(): pass # Else if the character is '?', '!', or ' ', pass. elif...
  19. skifli

    Please give me something to code in Python.

    Please give me something to code in Python.
  20. skifli

    Python How to check a string is odd palindrome in python?

    An odd palindrome will always have an odd amount of characters. After you have confirmed that the string is a palindrome, you could check if it has an odd amount of characters. If it does, it is an odd palindrome. If it doesn't, it's just a palindrome.
Back
Top Bottom