+ 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,(-:

8th Mar 2018, 11:25 AM
Oma Falk
Oma Falk - avatar
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
9th Mar 2018, 12:06 PM
Cépagrave
Cépagrave - avatar
+ 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 😊
8th Mar 2018, 12:25 PM
LukArToDo
LukArToDo - avatar
8th Mar 2018, 11:49 AM
LukArToDo
LukArToDo - avatar
+ 20
@ Oma Falk, a great challenge 👍😉
8th Mar 2018, 11:17 AM
tooselfish
tooselfish - avatar
+ 16
nice code & answer @LukArToDo ☺
8th Mar 2018, 12:40 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 9
@oma 😂
8th Mar 2018, 1:23 PM
D_Stark
D_Stark - avatar
+ 8
@Immortal: It is a joke. If one does not get the bang, he first might consider as challenge.
8th Mar 2018, 11:24 AM
Oma Falk
Oma Falk - avatar
+ 8
Chuck Norris still tries. He wont give up!
8th Mar 2018, 12:44 PM
Oma Falk
Oma Falk - avatar
+ 7
Please reset the remaining man by woman maybe: while "man" in sentence: replace...
8th Mar 2018, 8:43 AM
Oma Falk
Oma Falk - avatar
+ 7
@Vijay challenge solved (-:
8th Mar 2018, 1:02 PM
Oma Falk
Oma Falk - avatar
+ 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!
8th Mar 2018, 1:20 PM
Oma Falk
Oma Falk - avatar
+ 6
@fish thanks!
8th Mar 2018, 11:57 AM
Oma Falk
Oma Falk - avatar
+ 6
thats it @Luka
8th Mar 2018, 12:28 PM
Oma Falk
Oma Falk - avatar
+ 6
@cestpasgrave LoL! very good! thank you!
9th Mar 2018, 5:49 AM
Oma Falk
Oma Falk - avatar
+ 6
chuck norris is still working on this topic. His manager cancelled all appointments for the next 5 days. .... he is a bit optimistic
18th Mar 2018, 11:40 AM
Oma Falk
Oma Falk - avatar
+ 5
@Lukar: not completely solved: The sentence still has some man in it. (-:
8th Mar 2018, 11:57 AM
Oma Falk
Oma Falk - avatar
+ 5
we can't remove man from woman or male from female n vice versa😀
8th Mar 2018, 12:50 PM
Vijay
Vijay - avatar
+ 5
@Oma: I can't fight the feeling, that your name is Christine.
8th Mar 2018, 11:16 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 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.
9th Mar 2018, 9:49 AM
Oma Falk
Oma Falk - avatar