global w1_name, w2_name, w3_name, w4_name, w5_name global m1_name, m2_name, m3_name, m4_name, m5_name global w1_1st_pref, w1_2nd_pref, w1_3rd_pref, w1_4th_pref, w1_5th_pref global w2_1st_pref, w2_2nd_pref, w2_3rd_pref, w2_4th_pref, w2_5th_pref global w3_1st_pref, w3_2nd_pref, w3_3rd_pref, w3_4th_pref, w3_5th_pref global w4_1st_pref, w4_2nd_pref, w4_3rd_pref, w4_4th_pref, w4_5th_pref global w5_1st_pref, w5_2nd_pref, w5_3rd_pref, w5_4th_pref, w5_5th_pref global m1_1st_pref, m1_2nd_pref, m1_3rd_pref, m1_4th_pref, m1_5th_pref global m2_1st_pref, m2_2nd_pref, m2_3rd_pref, m2_4th_pref, m2_5th_pref global m3_1st_pref, m3_2nd_pref, m3_3rd_pref, m3_4th_pref, m3_5th_pref global m4_1st_pref, m4_2nd_pref, m4_3rd_pref, m4_4th_pref, m4_5th_pref global m5_1st_pref, m5_2nd_pref, m5_3rd_pref, m5_4th_pref, m5_5th_pref def input_w1(): w1_name = input("\nPlease enter the first woman's name: ") w1_1st_pref = input("First choice: ") w1_2nd_pref = input("Second chioce: ") w1_3rd_pref = input("Third choice: ") w1_4th_pref = input("Fourth choice: ") w1_5th_pref = input("Fifth choice: ") def input_w2(): w2_name = input("\nPlease enter the second woman's name: ") w2_1st_pref = input("First choice: ") w2_2nd_pref = input("Second chioce: ") w2_3rd_pref = input("Third choice: ") w2_4th_pref = input("Fourth choice: ") w2_5th_pref = input("Fifth choice: ") def input_w3(): w3_name = input("\nPlease enter the third woman's name: ") w3_1st_pref = input("First choice: ") w3_2nd_pref = input("Second chioce: ") w3_3rd_pref = input("Third choice: ") w3_4th_pref = input("Fourth choice: ") w3_5th_pref = input("Fifth choice: ") def input_w4(): w4_name = input("\nPlease enter the fourth woman's name: ") w4_1st_pref = input("First choice: ") w4_2nd_pref = input("Second chioce: ") w4_3rd_pref = input("Third choice: ") w4_4th_pref = input("Fourth choice: ") w4_5th_pref = input("Fifth choice: ") def input_w5(): w5_name = input("\nPlease enter the fifth woman's name: ") w5_1st_pref = input("First choice: ") w5_2nd_pref = input("Second chioce: ") w5_3rd_pref = input("Third choice: ") w5_4th_pref = input("Fourth choice: ") w5_5th_pref = input("Fifth choice: ") def input_m1(): m1_name = input("\nPlease enter the first man's name: ") m1_1st_pref = input("First choice: ") m1_2nd_pref = input("Second chioce: ") m1_3rd_pref = input("Third choice: ") m1_4th_pref = input("Fourth choice: ") m1_5th_pref = input("Fifth choice: ") input_w1()
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question