ДАЮ 100 БАЛЛОВ!
Помогите перевести с паскаля на питон:
var a,b,i:integer;N:string;

begin

read(N);

for i:=1 to length(N) do

begin

if N[i]='2' then a:=a+2 else b:=b+3;

end;

write(a-b);

end.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.