File tree 2 files changed +4
-2
lines changed
flask/part3_templates/ex3-app 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ def get_student(source, idnum):
33
33
city = record ["location" ]["city" ].title ()
34
34
state = record ["location" ]["state" ].title ()
35
35
postal = str (record ["location" ]["postcode" ])
36
- address = street + ", " + city + ", " + state + " " + postal
36
+ # address = street + ", " + city + ", " + state + " " + postal
37
+ address = f'{ street } , { city } , { state } { postal } '
37
38
return name , photo , address
38
39
# return these if id is not valid
39
40
return "Unknown" , "" , "Unknown"
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ def get_student(source, idnum):
35
35
city = record ["location" ]["city" ].title ()
36
36
state = record ["location" ]["state" ].title ()
37
37
postal = str (record ["location" ]["postcode" ])
38
- address = street + ", " + city + ", " + state + " " + postal
38
+ # address = street + ", " + city + ", " + state + " " + postal
39
+ address = f'{ street } , { city } , { state } { postal } '
39
40
return name , photo , address
40
41
# return these if id is not valid
41
42
return "Unknown" , "" , "Unknown"
You can’t perform that action at this time.
0 commit comments