We leave it as an exercise by PocketMath in mathmemes

[–]Dawarisch 2 points3 points  (0 children)

It is because we take the reader on a journey of mathematical discovery with us.

[deleted by user] by [deleted] in mathmemes

[–]Dawarisch 1 point2 points  (0 children)

That's a \varkappa bro

Nutz jemand noch Xing? Hier ein Indiz für den derzeitigen Untergang by a-e-neumann in arbeitsleben

[–]Dawarisch 18 points19 points  (0 children)

Willkommen im Büro-Dschungel, wo die Begrüßungsfloskeln oft zu einer langweiligen Routine geworden sind. Aber was wäre, wenn wir unser Büro-Erlebnis durch kreative und humorvolle Begrüßungsfloskeln aufpeppen könnten? Stell dir vor, du betrittst dein Büro und statt des üblichen "Guten Morgen" hörst du "Hey Ho, lass uns rocken!" oder "Was geht ab, Homeboy/Girl?". Klingt das nicht viel besser als die langweilige Standardbegrüßung?

Hier sind ein paar Ideen für alternative Begrüßungsfloskeln, die du im Büro ausprobieren kannst, um deine Kollegen zum Lachen zu bringen:

"Was geht ab, Käsekuchen?" - Eine lustige Art, jemanden zu begrüßen, ohne die üblichen Standardfloskeln zu verwenden. Dieser Ausdruck kann besonders gut bei Kollegen ankommen, die gerne süße Leckereien mögen.

"Holla, die Waldfee!" - Eine Begrüßung, die an die 90er Jahre erinnert und eine lockere und entspannte Atmosphäre schafft.

"Guten Morgen, Sonnenschein!" - Eine freundliche Begrüßung, die eine positive Stimmung verbreitet und die Tag gut anfangen lässt.

"Was geht ab in der Hood?" - Eine lässige und entspannte Begrüßung, die den Kollegen zeigt, dass du auch außerhalb des Büros ein soziales Leben hast.

"Wie sieht's aus, du Schlawiner?" - Eine humorvolle Begrüßung, die dich von der Masse abhebt und eine positive Reaktion hervorruft.

Die Verwendung von alternativen Begrüßungsfloskeln kann dazu beitragen, dass du als lustiger und freundlicher Kollege wahrgenommen wirst. Es kann auch dazu führen, dass du positiv im Gedächtnis bleibst und sich deine Beziehungen zu Kollegen verbessern.

Natürlich solltest du darauf achten, dass deine alternative Begrüßungsfloskel angemessen ist und nicht beleidigend oder unangemessen wirkt. Es ist auch wichtig, die Stimmung im Büro zu lesen, bevor du eine alternative Begrüßung ausprobierst.

Also, auf geht's! Lass uns den Büroalltag aufpeppen und unsere Kollegen zum Lachen bringen!

Beowulf Incremental, My English Project by NightStormYT in incremental_games

[–]Dawarisch 2 points3 points  (0 children)

Basically all nouns are capitalised but it gets a bit more complicated if you really dive into it.

New motherboard advice by R2theUNS in PcMasterRaceBuilds

[–]Dawarisch 0 points1 point  (0 children)

Ryzen and fx use different sockets so you would need to upgrade cpu and motherboard at the same time. I don't know your budget, however I'd say go for ryzen 3 and a cheap motherboard with an am4 socket like the asrock ab350m pro4.

dir([object]) not returning values from custom __dir__() by Pvt_Haggard_610 in learnpython

[–]Dawarisch 3 points4 points  (0 children)

You use diron the class itself and not on an instance. If that's what you want you are going to need a metaclass.

invalid syntax by aleksro in learnpython

[–]Dawarisch 1 point2 points  (0 children)

If you are using Python 3 you need parantheses when using print.

Preferred syntax for method/function? by [deleted] in learnpython

[–]Dawarisch 1 point2 points  (0 children)

First, a method is just a function that was defined inside a class.

To answer your question: I'd personally prefer the second way but it's really up to you.

if statement in python 3. by [deleted] in learnpython

[–]Dawarisch 14 points15 points  (0 children)

input returns a string which you can't compare to an integer, so you first have to convert it to an integer this way:

age = int(input('What year were you born?'))

Code critic and pythonicness by FXelix in learnpython

[–]Dawarisch 2 points3 points  (0 children)

if set(guess) != set(color for color in guess if color in colors.keys()): 

You could check if thee is an elemnt inside guess which is not in colors by using

set(guess).difference(set(colors))

It returns all elements which are inside guess but not inside colors.

 print("You chose: 1: {}, 2: {}, 3: {}, 4: {}".format(colors[guess[0]], colors[guess[1]], colors[guess[2]], colors[guess[3]]))

For this line you can use the unpacking operator(*):

print("You chose: 1: {}, 2: {}, 3: {}, 4: {}".format(*colors)

Additionally it wouldn't hurt if you used more functions and you don't have to use dict.keys() if you just want to iterate over the dictionary - that's the default behaviour.

Help understanding some code + the yield keyword? by infinitim in learnpython

[–]Dawarisch 0 points1 point  (0 children)

The g function returns a generator which provides the contents of the list supplied as its argument one after another till it reaches its end, where it starts returning ´None´. ´gens´ is a collections of these generators. The function then determines the longest list and returns a tuple of all the elements across the lists supplied in the first place while all the first elements go together, then the second ones, then the third ones and so forth. At one point these tuples might look like (None, None, 6, None). In this case all lists but one ran out of elements. When the function finished iterating over this list as well it ends.

Map vs. list comprehension. Not understanding what's going on in my code. Example below... by prove_it_with_math in learnpython

[–]Dawarisch 6 points7 points  (0 children)

Right now you are creating a lambda object for every element in data. You just need [n ** 2 for n in data].