2017-11-07 14 views
-5

予約をしている人の数を尋ねる必要があります。最大8人がその金額を受け取って、ユーザー1の詳細、ユーザー2の詳細などを保存します。後で印刷する詳細を保存します。非常に新しいPythonですループの質問Python

manager_name = raw_input("please enter managers Name: ") 
email_address = raw_input("please enter your Email Address: ") 
phone_number = raw_input("please enter your Phone number: ") 



print("-----------------------------------------------------") 
print ("Our Stuido can Accommodate up to max 8 musicians") 
print("-----------------------------------------------------") 

amount_of_band_members = int(raw_input("please enter the amount of band members")) 

values = [] 
for i in range(amount_of_band_members): 
values.append(int(input('Please enter Muscians Names & Insterments: '))) 
+2

インデントは –

答えて

0
manager_name = raw_input("please enter managers Name: ") 
email_address = raw_input("please enter your Email Address: ") 
phone_number = raw_input("please enter your Phone number: ") 


print("-----------------------------------------------------") 
print ("Our Stuido can Accommodate up to max 8 musicians") 
print("-----------------------------------------------------") 

amount_of_band_members = int(raw_input("please enter the amount of band members")) 

if amount_of_band_members >8: 
    print ("Sorry we can only Accommodate maxuim 8 Musicians") 
else : 
    print raw_input("please enter musicians and insterments") 


while amount_of_band_members <8: 
    print raw_input("please enter next name") 
    amount_of_band_members +=1 
+0

重要私は喜び、まだこれを試していません – Irishjim