Skip to main content

Build an App from the scratch using Python

 Hey Friends!!

The code used in the video is given below:

CODE:

import json

from difflib import get_close_matches

jsonfile = json.load(open("data1.json"))

word = input("enter the word: ")

def check(d):

    d = d.lower()

    if d in jsonfile:

        return jsonfile[d]

    elif len(get_close_matches(d,jsonfile.keys())) > 0:

        choice = input("Did you mean %s , Enter Y for YES, N for NO " 

%get_close_matches(d,jsonfile.keys())[0])

        if choice == "Y" or "y":

            return jsonfile[get_close_matches(d,jsonfile.keys())[0]]

        elif choice == "N" or "n":

            return "The word doesn't exist, please enter the correct word"

        else:

            return "you enterd the wrong choice"

    else:

        return "The word doesn't exist, please enter the correct word"

result = (check(word))

if type(result) == list:

    for i in result:

        print(i)

else:

    print(result)


Check out the link below to know how to build an application in python!!

https://www.youtube.com/watch?v=vlTbbgb_t2g&feature=youtu.be



Happy Learning!!

Comments

  1. Bro ethical hacking couse send to my mail bro

    ReplyDelete
  2. I paid cybersecurity course but I can't get anylink this my mail id smileyyuva2021@gmail.com

    ReplyDelete
    Replies
    1. Bro ungaluku doendown link kedachtha ?? Pls reply pannuga Nanu vaga poren

      Delete
  3. #include
    #include
    int main(){
    std::string name;
    int age,mark1,mark2,mark3;
    std::cout<<"Enter the Name"<<"\n";
    std::cin>>name;
    std::cout<<"Enter the Age"<<"\n";
    std::cin>>age;
    std::cout<<"Enter the mark1"<<"\n";
    std::cin>>mark1;
    std::cout<<"Enter the mark2"<<"\n";
    std::cin>>mark2;
    std::cout<<"Enter the mark3"<<"\n";
    std::cin>>mark3;
    int mark4, mark5, mark6;
    int addvalue= mark4 + mark5 + mark6;
    std::cout<<"total mark = "<<(mark1 + mark2 + mark3);
    std::cout<<"\n"<<"name:"<<name;
    std::cout<<"\n"<<"age:"<<age;
    std::cout<<"\n"<<"mark1:"<<mark1;
    std::cout<<"\n"<<"mark2:"<<mark2;
    std::cout<<"\n"<<"mark3:"<<mark3;
    return 0;
    }

    ReplyDelete
    Replies
    1. Using namespace std;
      பயன்படுத்துங்கள், std:: அதிகம் பயன்படுத்துவதால் உங்களுடைய கோடிங்கின் கொள்ளலவு அதிகமாக இருக்கும்.

      Delete
    2. நல்ல முயற்சி, தொடர்ந்து கற்றுக்கொள்ளுங்கள். கவனத்தில் கொள்ளக.

      Delete
  4. Bro i pay the amount but download link ethuvume varala bro my money ena achu bro pls reply
    My mailid : prakashrohit8586@gmil.com

    ReplyDelete
  5. Bro ethical hacking course pathe join pannanum bro web site send pannu ka

    ReplyDelete
  6. Bro nan madhurai tha EA friend EA Facebook account eatothutten eppo na antha account python programming vachu atokalama bro
    Ava eatothatha nan canto potochutten please Facebook account Identity viluthuruchu atha remove pannanum athaium sathu oru video va potoga bro. Illa na Avan mobile hack Panna mathire athavathu solli thaga bro eanaku mattum illama enka ellarukum nallatha eirugum

    ReplyDelete
  7. Bro python la part 3 video podunga bro
    python vachi app create panra tutorials ella podunga bro and athuku ennalo install pananu apdinu solli kudunga

    ReplyDelete
  8. bro i got this error
    FileNotFoundError: [Errno 2] No such file or directory: 'data1.json'

    ReplyDelete
    Replies
    1. You have to create json file in your own way this was like vehicle you have to take ur things(json)

      Delete

Post a Comment

Popular posts from this blog

Learn c++ in Tamil | Complete guide and tutorial | Beginner to Advance all concepts explained.

hi guys welcome , all the coding used in video are available here : /* hi guys welcome to learn c++ in tamil what is C++ how what software your own program schools,clg,institute.... start 1.interest 2.patience 3.fun 4.practise computer program - app - programming source code - hardware - fb running , executing machine language :  101010 assembly lang : mov h1; high lang : c , c++....java , js , python  eg :  a+b .....1001010  compiler :  human to machine              machine to human  rules :  a+b;  usage:  games, manufacturing , embedded , finance , graphics , etc...  Guide: 1.problem 2.solution - alternative 3.program  - C++ 4.compile  - turboc , ide , codeblocks , cmd 5.result   - library file - linker : #include<iostream.h>    input , output std::cout<<"welcome";   standard character out << " "; primary section : 1.statements   ;  end 2.functions   main() 3.syntax  , syntax error pra

Xplore-Know your TCS Solutions

KNOW YOUR TCS-SOLUTIONS 1.Who is the founder of Tata group? Jamsetji Tata 2.Which characteristics of Big Data deals with trustworthiness of data? Veracity 3.Which is India's first indigeneously designed and manufactured car? Tata Indica 4.What was originally called the "Imitation game" by its creator? The Turing test 5.90% of world's data is created in the last 2 years. True 6.In 1990s,which company did Tata steel acquire? Corus 7.How many independently operating companies are there under Tata group? Over 100 8.We use natural language processing for reviewing twitter fields. True 9.The change of mind set is required from "optimizing scarce resources" to "harnessing abundance" will help in? Leveraging ecosystems 10.Robots can be used for building houses. True 11.Which among the following key for IT management is based on the proper use of data? Embedding security in every system. 12.When did Tata Motors unveil Tata Nano? 2008 13.Business 4.0 brings