0

Why does my local scope always return blank

Whenever I access a locally declared variable from inside it always returns a blank white page and I can't understand. or am I not doing it right? https://code.sololearn.com/WACH738LsG2L/?ref=app

13th Apr 2022, 9:06 AM
steve Purpose
steve  Purpose - avatar
3 Answers
+ 1
stephen Purpose You cannot access local variable outside. You have to call function to print local variable value VehicleSound ()
13th Apr 2022, 9:09 AM
A͢J
A͢J - avatar
+ 1
Ok let me go try Aj and Ipang
13th Apr 2022, 9:12 AM
steve Purpose
steve  Purpose - avatar
+ 1
Thanks a lot all .I just called the function and it worked.
13th Apr 2022, 9:16 AM
steve Purpose
steve  Purpose - avatar