// PRACTICE · PYTHON
Write it, run it, check it.
ලියන්න, ධාවනය කරන්න, පරීක්ෂා කරන්න.
Real Python running inside your browser — nothing to install. Each task checks your output automatically, so you know straight away whether your answer is right.
ඔබේ browser එක තුළම සැබෑ Python — කිසිවක් install කිරීමට අවශ්ය නැත. සෑම කාර්යයක්ම ඔබේ ප්රතිදානය ස්වයංක්රීයව පරීක්ෂා කරන නිසා, ඔබේ පිළිතුර නිවැරදිද යන්න වහාම දැනගත හැක.
0 / 0 solved
0
PlaygroundPlayground
A blank editor for trying anything you like. Type values your program asks for into the Input box — one per line.
ඔබට කැමති ඕනෑම දෙයක් උත්සාහ කිරීමට හිස් editor එකක්. ඔබේ ක්රමලේඛය ඉල්ලන අගයන් Input කොටුවට ඇතුළත් කරන්න — පේළියකට එකක්.
Your codeඔබේ කේතය
Inputආදානය
One value per line, in the order your program reads them.
ඔබේ ක්රමලේඛය කියවන පිළිවෙළට, පේළියකට එක් අගයක්.
output · ප්රතිදානය
Press Run to see the output here…
▸
How the checking works. Your program's printed output is compared with the expected output, ignoring extra blank lines and spaces at the end of lines. If it does not match, you will see both side by side so you can spot the difference.
පරීක්ෂාව ක්රියා කරන ආකාරය. ඔබේ ක්රමලේඛය මුද්රණය කරන ප්රතිදානය අපේක්ෂිත ප්රතිදානය සමඟ සැසඳේ; අමතර හිස් පේළි සහ පේළි අගදී ඇති හිස්තැන් නොසලකා හරියි. නොගැළපේ නම්, වෙනස හඳුනාගැනීමට දෙකම පෙන්වයි.