├── palindrome.py ├── qrgen.py ├── lcmOfTwoNumbers.py ├── ytDownloader.py ├── numberGame.py ├── simplecalculator.py └── README.md /palindrome.py: -------------------------------------------------------------------------------- 1 | from colorama import Fore,Back,Style 2 | word = input("Enter word >> ").lower() 3 | word_backwards = word[::-1] 4 | if word==word_backwards: 5 | print(Fore.GREEN + "Its a palindrome" + Fore.RESET) 6 | else: 7 | print(Fore.RED + "Its not a palindrome" + Fore.RESET) -------------------------------------------------------------------------------- /qrgen.py: -------------------------------------------------------------------------------- 1 | import qrcode 2 | 3 | print("QR Code Generator") 4 | print("Created by @chandan") 5 | 6 | data = input("Enter input>> ") 7 | 8 | qr = qrcode.make(data) 9 | 10 | qr.save("C:/Users/chand/Desktop/qrcode.png") 11 | 12 | print("QR Code generation successful") 13 | 14 | -------------------------------------------------------------------------------- /lcmOfTwoNumbers.py: -------------------------------------------------------------------------------- 1 | 2 | x = int(input("x >> ")) 3 | y = int(input("y >> ")) 4 | 5 | if x>y: 6 | greater = x 7 | else: 8 | greater = y 9 | 10 | while(True): 11 | if ((greater%x==0) & (greater%y==0) ): 12 | lcm = greater 13 | break 14 | greater += 1 15 | 16 | print(f"LCM of {x} and {y} is {lcm}") -------------------------------------------------------------------------------- /ytDownloader.py: -------------------------------------------------------------------------------- 1 | from pytube import YouTube 2 | 3 | link = input("Enter Youtube URL >> ") 4 | 5 | try: 6 | yt = YouTube(link) 7 | mp4files = yt.streams.filter(file_extension="mp4") 8 | video = mp4files.get_highest_resolution() 9 | video.download() 10 | print("Video was downloaded successfully!") 11 | except: 12 | print("Connection Error") -------------------------------------------------------------------------------- /numberGame.py: -------------------------------------------------------------------------------- 1 | 2 | import random 3 | 4 | secretnum = random.randint(1,50) 5 | print(secretnum) 6 | count = 1 7 | 8 | while(True): 9 | guess = int(input("Guess the number (1-50) >> ")) 10 | if guess==secretnum: 11 | print("You guessed it right. Victory!") 12 | break 13 | else: 14 | print("Oh no! Try Again!") 15 | count += 1 16 | 17 | print(f"You took {count} chances.") 18 | 19 | -------------------------------------------------------------------------------- /simplecalculator.py: -------------------------------------------------------------------------------- 1 | print("Simple Calculator") 2 | print("Select an Operation") 3 | print("1. Addition") 4 | print("2. Substraction") 5 | print("3. Multiplication") 6 | print("4. Division") 7 | print("0. End the Program") 8 | 9 | while True: 10 | operation = int(input("Enter choice(1/2/3/4/0) >> ")) 11 | num1 = float(input("Enter num1>> ")) 12 | num2 = float(input("Enter num2>> ")) 13 | 14 | if operation==1: 15 | print(num1+num2) 16 | elif operation==2: 17 | print(num1-num2) 18 | elif operation==3: 19 | print(num1*num2) 20 | elif operation==4: 21 | print(num1/num2) 22 | elif operation==0: 23 | break 24 | else: 25 | print("Invalid Option! Please Try Again") 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Learn Python in Kannada 2 | This repository is used to share the code for python programming tutorials (in kannada language) uploaded on Engineering in Kannada Youtube Channel. 3 | 4 | ✨PLAYLIST LINK ✨ 5 | 6 | Learn Python in Kannada - http://bit.ly/learnpythoninkannada 7 | 8 | Uniquota Python Telegram Group - http://bit.ly/pythontelegram 9 | 10 | Uniquota Python Whatsapp Group - https://chat.whatsapp.com/EEJkDTqhJoQF1S5dzkUgNv 11 | 12 | ✨ RECOMMENDED VIDEOS ✨ 13 | 14 | 1. Learn Python in Kannada - http://bit.ly/learnpythoninkannada 15 | 2. Introduction to coding in Kannada - http://bit.ly/codinginkannad 16 | 3. Can Biology students do well in computer science? - https://youtu.be/SU8dUEjAjAk 17 | 4. Hackerrank in Kannada - https://www.youtube.com/watch?v=bBru8lJlOFs 18 | 19 | ✨ RECOMMENDED ARTICLE ✨ 20 | 21 | PCMB to Computer science (My story) - https://bit.ly/3AyXupN 22 | 23 | 24 | ✨ Social Handles ✨ 25 | 26 | 📸 Instagram: http://bit.ly/uniquotainsta 27 | 28 | 📸 Personal Instagram: http://bit.ly/csginstaconnect 29 | 30 | 📱 Twitter: http://bit.ly/csgtwitteracc 31 | 32 | 📝 LinkedIn: https://www.linkedin.com/in/chandan-s-gowda-4b2913183 33 | 34 | 📂 GitHub: https://github.com/chandansgowda 35 | 36 | 🔹 Facebook: http://bit.ly/uniquotafb 37 | 38 | --------------------------------------------------------------------------------