Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
RCM Distributor info.
N = input() Dist = { "Pradeep":{ "ID": 31922934, "Level": "Star Gold", "City": "Dalla", "Income": 28000 }, "Sudama":{ "ID": 32236014, "Level": "Star", "City": "Dalla", "Income": 18000 }, "Irfan":{ "ID": 31922942, "Level": "Star Gold", "City": "Dalla", "Income": 26000 }} D = dict( ID = 32236152, Level= "Winner", City = "Dalla", Income = 12000) Dist["Shashi Chaubey"] = D Dist["Amit Kumar"] = dict( ID = 32236144, Level = "Opener", City = "Dalla", Income = 5000 ) P, S, I, Sh, A = Dist["Pradeep"], Dist["Sudama"],Dist["Irfan"], Dist["Shashi Chaubey"], Dist["Amit Kumar"] X = [ "Pradeep", "Sudama", "Irfan", "Shashi Chaubey", "Amit Kumar", "non"] if N not in X: N = X[-1] Y = [ P, S, I, Sh, A, 0 ] n = X.index(N) D = Y[n] print ("*"*39) if n < (len(X)-1): print ( " Mr %s is on %s level. His distributer ID is %d. He belongs to %s. His monthly income is above ₹%d." % ( N, D["Level"], D["ID"], D["City"], D["Income"] )) else: print (" "*7,"Please enter FULL NAME") print ("*"*39)
run
|
edit
|
history
|
help
0
me
Add missing person
Python: Functions I : Functions with messages.
map lambda list
Repeated match within another regular expression
nth root
count(even/odd)fromlist.py
ms 80
~2668 Pime Numbers list
ivan2