Home Backend Development Python Tutorial Effort achieved through Python training course - Two

Effort achieved through Python training course - Two

Jul 20, 2024 pm 08:32 PM

பைத்தான் பயிற்சி வகுப்பின் மூலம் அடைந்த முயற்சி - இரண்டு

from meymayakkamfinal1 import *

print ("மெய்ம்மயக்கம் விளையாட்டை விளையாடலாமா")
print ("மெய்ம்மயக்க விளையாட்டை விளையாடப் படிநிலைகளுள் ஒன்றைத் தெரிவுசெய்க")

படிநிலைகள் = [
"1. க்+க",
"2. ங்+கங",
"3. ச்+ச",
"4. ஞ்+சஞய",
"5. ட்+கசடப",
"6. ண்+கசஞடணபமயவ",
"7. த்+த",
"8. ந்+தநய",
"9. ப்+ப",
"10. ம்+பமயவ",
"11. ய்+கசதபஞநமயவங",
"12. ர்+கசதபஞநமயவங",
"13. ழ்+கசதபஞநமயவங",
"14. வ்+வ",
"15. ல்+கசபலயவ",
"16. ள்+கசபளயவ",
"17. ற்+கசபற",
"18. ன்+கசஞபமயவறன",
"19. ர, ழ குற்று ஒற்று ஆகா"
]

print (படிநிலைகள் )

விதிகள் = [meymayakkam1, meymayakkam2, meymayakkam3, meymayakkam4, meymayakkam5, meymayakkam6, meymayakkam7, meymayakkam8, meymayakkam9, meymayakkam10, meymayakkam11, meymayakkam12, meymayakkam13, meymayakkam14, meymayakkam15, meymayakkam16, meymayakkam17, meymayakkam18, meymayakkam19]

விளையாடும்_களமுறை = 20

while விளையாடும்_களமுறை > 0:
    விளையாடும்_களமுறை = விளையாடும்_களமுறை - 1

    தெரிவுசெய் = input("விளையாடும் விதியைத் தெரிவுசெய் : ")
    #print (தெரிவுசெய் )
    உள்ளீட்டுச்சொல் = input("ஒரு சொல்லைத் தருக : ")

    if தெரிவுசெய் == "1" and meymayakkam1(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி1இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "2" and meymayakkam2(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி2இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "3" and meymayakkam3(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி3இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "4" and meymayakkam4(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி4இன்படி சரியான சொல்")         
    elif தெரிவுசெய் == "5" and meymayakkam5(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி5இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "6" and meymayakkam6(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி6இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "7" and meymayakkam7(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி7இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "8" and meymayakkam8(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி8இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "9" and meymayakkam9(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி9இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "10" and meymayakkam10(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி10இன்படி சரியான சொல்")            
    elif தெரிவுசெய் == "11" and meymayakkam11(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி11இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "12" and meymayakkam12(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி12இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "13" and meymayakkam13(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி13இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "14" and meymayakkam14(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி14இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "15" and meymayakkam15(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி15இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "16" and meymayakkam16(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி16இன்படி சரியான சொல்")            
    elif தெரிவுசெய் == "17" and meymayakkam17(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி17இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "18" and meymayakkam18(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி18இன்படி சரியான சொல்")
    elif தெரிவுசெய் == "19" and meymayakkam19(உள்ளீட்டுச்சொல்):
            print ("மெய்ம்மயக்க விதி19இன்படி சரியான சொல்")
    else:
        print ("மெய்ம்மயக்க விதிகளின்படி இது தவறான சொல். மீண்டும் விளையாடுங்கள்.")

Copy after login

The instructor ran into a further problem with the program that Saber fixed according to their instructions. See program attempt three to fix it.

The above is the detailed content of Effort achieved through Python training course - Two. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to avoid being detected by the browser when using Fiddler Everywhere for man-in-the-middle reading? How to avoid being detected by the browser when using Fiddler Everywhere for man-in-the-middle reading? Apr 02, 2025 am 07:15 AM

How to avoid being detected when using FiddlerEverywhere for man-in-the-middle readings When you use FiddlerEverywhere...

How to solve permission issues when using python --version command in Linux terminal? How to solve permission issues when using python --version command in Linux terminal? Apr 02, 2025 am 06:36 AM

Using python in Linux terminal...

How to teach computer novice programming basics in project and problem-driven methods within 10 hours? How to teach computer novice programming basics in project and problem-driven methods within 10 hours? Apr 02, 2025 am 07:18 AM

How to teach computer novice programming basics within 10 hours? If you only have 10 hours to teach computer novice some programming knowledge, what would you choose to teach...

How to get news data bypassing Investing.com's anti-crawler mechanism? How to get news data bypassing Investing.com's anti-crawler mechanism? Apr 02, 2025 am 07:03 AM

Understanding the anti-crawling strategy of Investing.com Many people often try to crawl news data from Investing.com (https://cn.investing.com/news/latest-news)...

Python 3.6 loading pickle file error ModuleNotFoundError: What should I do if I load pickle file '__builtin__'? Python 3.6 loading pickle file error ModuleNotFoundError: What should I do if I load pickle file '__builtin__'? Apr 02, 2025 am 06:27 AM

Loading pickle file in Python 3.6 environment error: ModuleNotFoundError:Nomodulenamed...

What is the reason why pipeline files cannot be written when using Scapy crawler? What is the reason why pipeline files cannot be written when using Scapy crawler? Apr 02, 2025 am 06:45 AM

Discussion on the reasons why pipeline files cannot be written when using Scapy crawlers When learning and using Scapy crawlers for persistent data storage, you may encounter pipeline files...

See all articles