Q:
Sum 2 lists with same name in python
This is my first post on stackoverflow.
I'm new at python and programming.
I have a problem, I have 2 lists.
The first list :
First_List = ['A','B','C','D']
The second list :
Second_List = ['E','F','G','H']
I would like to calculate the total of each number in each list, like this :
First_List = ['A','B','C','D']
Second_List = ['E','F','G','H']
Output :
Total = A+E = 0 + B+F = 0 + C+G = 0 + D+H = 8
If you have any idea, I would be glad if you could help me.
Thanks in advance.
A:
Do a for loop to iterate over the elements of First_List and Second_List and add the elements of each list to the corresponding total.
for i in First_List:
total += i
for i in Second_List:
total += i
print(total)
Five-year cancer mortality among patients treated with minimally invasive laser prostatectomy or transurethral prostatectomy.
Current treatment options for benign prostatic hyperplasia (BPH) are laser prostatectomy and transurethral resection of the prostate (TURP). Little is known about the outcome of patients treated with minimally invasive laser prostatectomy (MILP) or TURP. Two clinical studies comparing laser prostatectomy and TURP were performed. The MI-LUP (EUROPOL) study included 906 patients treated with 29-W GreenLight® laser prostatectomy (n = 515) or TURP (n = 391). The TURP-1 (Finland) study included 592 patients treated with 20-W Holmium laser prostatectomy (n = 348) or TURP (n = 244). All patients were followed up for a minimum of 5 years. The primary outcome of both studies was all-cause mortality. Secondary outcomes included prostate-specific antigen (PSA), International Prostate Symptom Score (I-PSS), quality of life (QOL) and surgical outcomes. A total of 1061 patients were included in be359ba680
Related links:
Comments