Post

Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv B. The upper method merely creates a new view with uppercase but doesn't change the actual string. If the List is to be changed to upper case, then use: List = ["Python", "Java"] x = [] for i in List: x.append(i.upper()) print(x)
English
1
0
9
405
Muheez
Muheez@muh33z·
@Python_Dv B. ['Python', 'Java'] The i.upper() isn't being appended or used to update the list, so the list doesn't change.
English
0
0
1
70
Paylaş