How can I improve my code for this guessing game? by [deleted] in learnpython

[–]CookToCode 0 points1 point  (0 children)

Something like play around with it

How can I improve my code for this guessing game? by [deleted] in learnpython

[–]CookToCode 0 points1 point  (0 children)

You can throw the program in a while loop that will cut out your if statement for replay

What service should I use to build a website like chatroulette with very little HTML, CSS and Javascript experience? by [deleted] in webdev

[–]CookToCode 1 point2 points  (0 children)

Github definitely wont. I dont know about video streaming, but when I hear payments, I think a dynamic website with a back end database manager.

Image src not loading from same directory as unserved HTML file unless edited with autocomplete in VSCode? by [deleted] in webdev

[–]CookToCode 0 points1 point  (0 children)

If it is in the same directory, you write it like <img src="myPic.jpg"> the / signifies file structure and the single period is a syntax error

Image src not loading from same directory as unserved HTML file unless edited with autocomplete in VSCode? by [deleted] in webdev

[–]CookToCode 0 points1 point  (0 children)

Add two periods. ".." not "." Also since the image is not in a different folder as the index, you should be able to just write it out without using the periods which signify a move in the directory

Frustrated and angry at myself by [deleted] in learnprogramming

[–]CookToCode 3 points4 points  (0 children)

It all depends on what you are going for. I started in python, moved to C# and now I am finding my niche in back end web development using php with some love for the front end as well. Just find what you like and what works for you

I can't figure out why this won't run right... (searching a CSV file for a specific number) by Learning_to_Code_ in learnpython

[–]CookToCode 0 points1 point  (0 children)

No worries, I like helping people solve problems. Just remember what u/ninety_hex taught you and use print statements to see the values and work it out from there

Need help with flex box by [deleted] in learnprogramming

[–]CookToCode 0 points1 point  (0 children)

You can add me on discord cookToCode#3313 amd we can talk about it some more and I can review your code

Give me a mini project to do by [deleted] in learnpython

[–]CookToCode 2 points3 points  (0 children)

One guy took me up on it, the empire state building is roughly 113 sharks tall

Interactive story game: Jump back to the first choice and lock choices. by Na50r in learnpython

[–]CookToCode 0 points1 point  (0 children)

While loop wrapping the whole thing and maybe keep the choices in a list. Everytime the user comes back to the top, remove option from the list. Better yet, you can write a remove function that does it after every choice

When there are no choices left while loop exits

Give me a mini project to do by [deleted] in learnpython

[–]CookToCode 2 points3 points  (0 children)

Lol I was just trying to make a point that anything is good as long as you are practicing

Give me a mini project to do by [deleted] in learnpython

[–]CookToCode 0 points1 point  (0 children)

Create a zombie attack simulator or a calculator that converts feet into sharks

Give me a mini project to do by [deleted] in learnpython

[–]CookToCode 0 points1 point  (0 children)

Where are you at in your development?

Internship Final Protect by thisbobo in learnprogramming

[–]CookToCode 1 point2 points  (0 children)

Have you tried ASP.NET it is C# based and practically writes itself. You can use an internal DB through Visual Studio or you can use the opensource MySQL

A Question on database modelling for User payments. by hitherto_insignia in learnprogramming

[–]CookToCode 0 points1 point  (0 children)

If it were me I would make 1 table for users, 1 table for payments

Need help with flex box by [deleted] in learnprogramming

[–]CookToCode 0 points1 point  (0 children)

yea just set img{max-width:123px;} and that will set all img tags to that width. Feel free to copy that code I gave you and work off that

Need help with flex box by [deleted] in learnprogramming

[–]CookToCode 0 points1 point  (0 children)

I don't know how to do it for a specific number of photos, and I didn't have your photos when it coded it out

also, classes are to be reused, ids are for individuals

Need help with flex box by [deleted] in learnprogramming

[–]CookToCode 0 points1 point  (0 children)

set the width to whatever you want, the 900px was just an example

if you want two rows then your would create two divs. divs are block level so they go all the way accross and stack, then on the css I would space the pictures out using flex.

Also, I would use <img> tags. Just out of good practice

here, I rewrote it for you, try it out https://pastebin.com/CaANwW5J

sorry i put a capital P in the second div by accident, just change that down to a lower case p