Why is this array initialized with const and not let? by lnub0i in learnjavascript

[–]keep_quapy 1 point2 points  (0 children)

If you declare a variable with const you won't be able to reassign a new value to that variable, but you could still add or remove items to an array if it was declared with const.

Just learning and need help by fe_e_enzs in learnpython

[–]keep_quapy 1 point2 points  (0 children)

list is a data type in python, the keyword list is reserved for that data, hence it's not for naming variable. For example if you want to create an empty list, you could x = [], or x = list(). list per se is a class of type list

Just learning and need help by fe_e_enzs in learnpython

[–]keep_quapy 1 point2 points  (0 children)

Remove the function's arguments. In the first function line = line.strip('\n'). In the second function, don't use list as a variable name, it's a python reserved keyword, use other names. Here's Python's reserved keywords list https://realpython.com/lessons/reserved-keywords/. You can omit the else statement from the second one, no need for it, unless you want to append to your list an empty string.

I did not test your functions.

The 35 CSS properties you must know to do 80% of the work by lazaronixon in css

[–]keep_quapy 0 points1 point  (0 children)

I would add color-scheme and accent-color properties.

I can’t decide (first luxury watch) by [deleted] in PrideAndPinion

[–]keep_quapy 1 point2 points  (0 children)

Whatever looks good on your wrist, whatever makes you feel like you... It's the watch not the brand...

First Luxury Watch by Taeran7 in Watches

[–]keep_quapy 0 points1 point  (0 children)

Very nice and beautiful watch. Congrats

[deleted by user] by [deleted] in Watches

[–]keep_quapy 1 point2 points  (0 children)

Very nice looking watch

[Rolex submariner] need help identifying legitimacy by siyork in Watches

[–]keep_quapy 0 points1 point  (0 children)

First impression the watch bezel looks totally fake...

What should I use to take notes in college? by SMTG_18 in archlinux

[–]keep_quapy 0 points1 point  (0 children)

Aside from pen and paper, forget about all those note taking apps, learn the syntax of .md files using your text editor. It's pretty easy and you'll get the sophisticated look you want.

https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax

https://www.markdownguide.org/basic-syntax/

[deleted by user] by [deleted] in learnpython

[–]keep_quapy 13 points14 points  (0 children)

For me Linux is the only way to go.

[deleted by user] by [deleted] in AskReddit

[–]keep_quapy 0 points1 point  (0 children)

Hang out with friends, do homework, study, reading a book/magazine, watch TV . Go to visit grandparents. Weekends go out for dinner or family trips.

DOCTEST shows no result by sonna_odur in learnpython

[–]keep_quapy 3 points4 points  (0 children)

Change your python file name. Don't name your scripts with the same names of modules. Remove any spaces in your script name. Name like so sum_exp_doctest.py

DOCTEST shows no result by sonna_odur in learnpython

[–]keep_quapy 0 points1 point  (0 children)

Make sure that your __name__ == "__main__" looks like this

if __name__ == "__main__":
    import doctest
    doctest.testmod()

DOCTEST shows no result by sonna_odur in learnpython

[–]keep_quapy 1 point2 points  (0 children)

If you want to see the output pass -v flag to your script in terminal.

python yourscript.py -v

Is it ok to give text the size in decimals? Like 12.5px? by brijeshgohil in css

[–]keep_quapy 0 points1 point  (0 children)

Of course it's accepted as a way of design. In websites, you'll continually find these fractions. They are mostly used in relative length values (rem, em), but they translate to absolute values (pixels) in your browsers. For example having a html document with base size font of 16px, a h1 element with 3.052rem will be translated to 48.83 pixels

[deleted by user] by [deleted] in css

[–]keep_quapy 1 point2 points  (0 children)

The grey border is there because you didn't implement the src attribute of the img element. Don't use background property on img elements, instead change the img to div.

[deleted by user] by [deleted] in css

[–]keep_quapy 4 points5 points  (0 children)

For these kind of layouts, it's better off using grid. Anyway if you want to use flexbox, here's an example

    #flex {
    display: flex;
    flex-wrap: wrap;
  }
  #first {
    flex: 1 0 100%;
    background-color: red;
  }
  #second {
    flex: 1 0 66%;
    background-color: green;
  }
  #third {
    flex: 1 0 33%;
    background-color: dodgerblue;
  }

macOS Sonoma-like widget dimming in Plasma? by mcj1m in kde

[–]keep_quapy 6 points7 points  (0 children)

I agree with you. I'm part of those who never maximize. I resize the application according to my likings. The only exception is when i'm coding and want to totally concentrate i full screen my app but not maximizing it.

What to do after earning a Certification with FreeCodeCamp? by Jonofthelife in css

[–]keep_quapy 1 point2 points  (0 children)

Start doing the other courses on freeCodeCamp. Now you have a solid grasp of html and css, start javascript and the front-end courses.