Python සිංහලෙන් - Lesson 31 | Challenge 5

  Рет қаралды 466

SL Geek School

SL Geek School

Күн бұрын

සරලව සිංහලෙන් නොමිලේ programming ඉගෙනගමු. Let's learn Programming, in Sinhala.
⭐Thanks for watching and supporting SL Geek School through Patreon. / slgeek
📌 About This Lesson
Welcome to Challenge 5 in the SL Geek School Python series! This video presents another stimulating coding challenge to test and enhance your Python skills. Get ready to tackle a practical problem and apply what you've learned in a creative and engaging way. Don't forget to like, comment, and subscribe to stay updated with our Python challenges and tutorials!
👨‍💻 Python Sinhala Lesson Series by SL Geek School. Beginner to Pro A to Z Python tutorials in Sinhala language for Sri Lanka. Free Python Online Classes for everyone. පයිතන් හැමදේම දන්නා සිංහලෙන්.
📖 Python Playlist - • Python සිංහලෙන්
📎 Resources -
Source Code - bit.ly/3Kg5gMr
#SLGeekSchool #Programming #SriLanka #SLGeek
🔴 Learn to Code - codehero.lk/
♥️🥰 Stay Connected, Follow me
Instagram - / slgeek
Facebook - / slgeekshow
Visit SL Geek Blog at - www.slgeek.lk
☎️ Contact me at pasindu@slgeek.lk

Пікірлер: 6
@SLGeekSchool
@SLGeekSchool 3 ай бұрын
SL Geek School එකෙන් කරන Live Bootcamp එකට join වෙලා මාත් එක්ක live code කරන ගමන් ප්‍රශ්න හැම දේටම live එකේ උත්තර දැනගන කැමතිද. පැය 2-3 කින් python වල beginner කෙනෙක් ඉදන් intermediate වෙනකන් යන්න ආසද ? මේ form එකෙන් bootcamp එක ගැන විස්තර දැනගන්න පුළුවන්. forms.gle/c3PxdQzDUfb5cehB6
@danushkakoggala5788
@danushkakoggala5788 Күн бұрын
niyamai math challenge eka kara. me challenge eka pattai
@programmerlk
@programmerlk 3 ай бұрын
මාත challenge එක කරා හැබැයි python වලින් නම් නෙවෙයි 😊 import java.util.ArrayList; import java.util.Scanner; public class Main { public int inputNumber; public ArrayList list = new ArrayList(); public static void main(String[] args) { Main obj = new Main(); Scanner sc = new Scanner(System.in); System.out.print("Enter number : "); obj.inputNumber = sc.nextInt(); for (int i = 0; i < obj.inputNumber; i++) { int ans = obj.getTriangular(i); obj.list.add(ans); } System.out.print("Triangular numbers are : "); for (int i = 0; i < obj.list.size(); i++) { if ( i == (obj.list.size() - 1) ){ System.out.println( obj.list.get(i)); }else{ System.out.print( obj.list.get(i)+" , "); } } int size = obj.list.size() - 1; System.out.print("Enter number between 0 and "+size+" : "); int inputSize = sc.nextInt(); if ( size >= inputSize){ System.out.println("The Triangular number at index "+inputSize+" is " + obj.list.get(inputSize)); }else{ System.out.println("Invalid number"); } } public int getTriangular(int x) { return x * (x + 1) / 2; } }
@anandasamaratunga5087
@anandasamaratunga5087 3 ай бұрын
Niyamayi ❤
@avishkapriyasoma461
@avishkapriyasoma461 3 ай бұрын
Man hithuwa channel eka nawattala kiyala ecommerce eke videosuth dannako
@programminglk5512
@programminglk5512 3 ай бұрын
Sample answer for fun :) entered_number = int(input("Enter a number: ")) answers = [((i * (i + 1)) // 2) for i in range(1,entered_number) if ((i * (i + 1)) // 2) < entered_number] #print the list print(f"Triangular numbers up to {entered_number} : {answers}") #print the answer for entered index prompt = int(input(f"Enter a number between 0 to {int(len(answers))-1}: ")) print(f"The Triangular number as index {str(prompt)} is: {answers[prompt]}")
Python සිංහලෙන් - Lesson 32 | List Comprehension
9:14
SQL Injections Explained | සරලව සිංහලෙන්
34:09
SL Geek School
Рет қаралды 1,4 М.
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 16 МЛН
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 17 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 13 МЛН
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 70 МЛН
Python සිංහලෙන් - Lesson 30 | Lists
13:19
SL Geek School
Рет қаралды 521
Python සිංහලෙන් - Lesson 45 | Challenge 6
20:22
SL Geek School
Рет қаралды 704
I Took a LUNCHBAR OFF A Poster 🤯 #shorts
00:17
Wian
Рет қаралды 16 МЛН