+ 31
[Challenge ] [Joke] International Women's day for males or : you cant code away a man!
This challenge shows that even today the man is irreplacable: Given a string "A man is the most important human in mankind" replace every occurancy of "man" by "woman". every! no more man in the sentence By the way: I am woman,(-:
26 Respuestas
+ 17
Hey Girls !
Very nice idea, Oma Falk ! Let's get rid of man in a code today !
man = 'A man is the most important human in mankind'
while 'man' in man:
man = man.replace('man','woman')
print(man)
This python code theoretically makes it at the infinite !
It starts like this :
A woman is the most important huwoman in womankind
A wowoman is the most important huwowoman in wowomankind
A wowowoman is the most important huwowowoman in wowowomankind
A wowowowoman is the most important huwowowowoman in wowowowomankind
But, okay, infinite not being for today, we have to look for something different.
Well I thought : man -> woman -> wowoman means at this point we replaced our man with two women, so gramatically, it would be correct to write :
man = 'A man is the most important human in mankind'
while 'man' in man:
man = man.replace('man','woman')
man = man.replace('wowoman','women')
print(man)
Then we get :
"A women is the most important huwomen in womenkind"
There still is this problem : the code itself is full of man. Ok then, so I took the whole code and apllied it to itself :
man = '''man = 'A man is the most important human in mankind'
while 'man' in man:
man = man.replace('man','woman')
man = man.replace('wowoman','women')
print(man)'''
while 'man' in man:
man = man.replace('man','woman')
man = man.replace('wowoman','women')
print(man)
this operation gives us a new code :
women = 'A women is the most important huwomen in womenkind'
while 'women' in women:
women = women.replace('women','women')
women = women.replace('wowomen','women')
print(women)
Finally running this new code gives us :
"A women is the most important huwomen in womenkind"
( Yes we already had this sentence before, but it was from a man's code, now it's from a woman's)
Oh, I feel I became a better woman after doing this today, thank you Oma Falk !
https://www.youtube.com/watch?v=rWDV1NtowUw
+ 32
@Oma
I know...but in that case I will get an infinite loop, which implies that the man is impossible to replace. But that's how it should be. Women should not replace someone. Women need to be equal with everyone, at least 😊
+ 20
@ Oma Falk, a great challenge 👍😉
+ 16
nice code & answer @LukArToDo ☺
+ 9
@oma 😂
+ 8
@Immortal: It is a joke.
If one does not get the bang, he first might consider as challenge.
+ 8
Chuck Norris still tries. He wont give up!
+ 7
Please reset the remaining man by woman
maybe:
while "man" in sentence:
replace...
+ 7
@Vijay challenge solved (-:
+ 7
@D_Stark you are absolutely right!
One addition: Did you recognize, that the keys w and o are not working on your keyboard?
Edit: Hey you could repair! Grönemeyer is right!
+ 6
@fish thanks!
+ 6
thats it @Luka
+ 6
@cestpasgrave LoL!
very good! thank you!
+ 6
chuck norris is still working on this topic. His manager cancelled all appointments for the next 5 days.
.... he is a bit optimistic
+ 5
@Lukar: not completely solved:
The sentence still has some man in it. (-:
+ 5
we can't remove man from woman or male from female n vice versa😀
+ 5
@Oma: I can't fight the feeling, that your name is Christine.
+ 4
@motonari_ no bad but two points:
1. "woman"
2. You are not finished (if you apply 1.) since there ist still some man to replace.