Loading…
snoring_parrot
Translation changed |
|
snoring_parrot
Source string changed |
|
snoring_parrot
Source string changed |
|
addon:prefill
Automatically translated |
|
None
String updated in the repository |
|
Key
adventures->debugging->levels->11->example_codeFlags
ignore-double-space, ignore-ellipsis, ignore-inconsistent, ignore-long-untranslated, ignore-same, ignore-translated, placeholders:r"`([^`\n\r]+)`|## ", python-brace-format
```
{print} 'Hedy calendar'
months_with_31 days = January, March, May, July, September, October, December
months_with_30_days = April, June, August, November
month = {ask} 'Which month would you like to see?'
{if} month {in} months_with_31_days
days = 31
{if} month {in} months_with30_days
days = 30
{if} month = February
leap_years = 2020, 2024, 2028, 2036, 2040, 2044, 2028
year = {ask} 'What year is it?'
{if} year {in} leap_years
days = 29
{else}
days = 28
{print} 'Here are all the days of ' moth
{for} i {in} {range} 1 {to} days
{print} month i
```
Warning! This code needs to be debuggedAtenção! Este código precisa ser depurado!**```
{print} '
Hedy calender'Calendário Hedy'months_with
meses_com_31 dia
ys = Januaryeiro, Marchço, Mayio, Julyho, Septembero, Octoberutubro, Decemberzembromonths_with
meses_com_30_dia
ys = Apbril, June, Auguho, Agosto, Novemberromonth
mês = {ask} '
Which month would you like to seeQual mês você gostaria de ver?'{if} m
onthês {in} months_witheses_com_31_diaysdia
ys = 31{if} m
onthês {in} months_witheses_com30_diaysdia
ys = 30{if} m
onthês = Februaryvereiroleap_year
anos_bissextos = 2020, 2024, 2028, 2036, 2040, 2044, 2028
yearano = {ask} 'What year is itDe que ano?'{if
year in leap_year} ano {in} anos_bissextosdia
ys = 29{else}
dia
ys = 28{print} '
Here are all the days of ' moth
Aqui estão todos os dias de ' ms{for} i {in
ys{print
month i} i de mês```