Keen Learner and Exp...ย โขย 22d
Day 30 of learning python as a beginner. Topic: making a fully functional calculator. Yesterday I got introduced to tkinter and was successful in creating a basic graphical layout for the calculator and today I added logic into it and now I finally have my own fully functional calculator (though basic one). However I do want to emphasize that I don't really think I have learned tkinter as I required much of AI assistance here and I am not much confident so I may also practice more of this and maybe next I will learn about scikit-learn or TensorFlow (suggestions are welcomed). As you may know that I had created a basic calculator program in my first few days of learning python as a beginner and I just reused its functions in my GUI logic and I know I may have also used the library also however I just want to reuse my code (my excuse for practicing import functions). I used command function to add logic to each button, I first created an anonymous function using lambda which assigns the value of text to each button via a for loop. After this I created the logic of identifying and actually calculating the user's input and returning him a meaningful answer. For this I used match case (I can also use if else statements however I find match case more readable and scalable for future). I then used some common functions like .delete, .insert for deleting and inserting inputs to print the result. I then used regrex functions to replace input%input (eg 20%80) to (input/100)*input (eg (20/100)*80). Then I used try except for handling any possible errors which may occur while the user is using the calculator. And here's my code and it's result.
Keen Learner and Exp...ย โขย 23d
Day 29 of learning python as a beginner. Topic: GUI using tkinter. I was getting some suggestions that I should start learning tkinter and PyQt as those will pose some really interesting challenge and I will have some fun learning them. Therefore I
See MoreKeen Learner and Exp...ย โขย 1m
Day 15 of learning python as a beginner. Topic: Error Handling. A lot of amazing people have suggested me that I should learn error handling in order to tackle unexpected situation which may arise. I created this basic calculator which can perform
See MoreKeen Learner and Exp...ย โขย 10d
Day 1 of learning AI/Ml as a beginner. Topic: Streamlit I have decided to start learning about the core AI/ML concepts (while also learning mathematics side by side) however you may say that streamlit is not a core AI/ML concept they are NLP, Deep
See MoreKeen Learner and Exp...ย โขย 2d
Day 9 of learning AI/ML as a beginner. Topic: Bag of Words practical. Yesterday I shared the theory about bag of words and now I am sharing about the practical I did I know there's still a lot to learn and I am not very much satisfied with the topi
See MoreKeen Learner and Exp...ย โขย 24d
Day 28 of learning python as a beginner. Topic: web scraping with postgreSQL database. When I posted my first web scraping project I just had the result on console however I wanted it to be stored somewhere where it can be reviewed later that's whe
See MoreKeen Learner and Exp...ย โขย 1m
Day 17 of learning python as a beginner. Topic: lambda functions + email filter Lambda functions are a single line anonymous function without using the usual def key word. All function: checks whether all the key words (spam_keywords) are present
See MoreData Enthusiastย โขย 27d
hii actually I have my ai application. and I used gemini for the ai model. as am scaling my application I had to use gemini more. so what I did was I created multiple projects and in each project i created a single key such that the limits are only
See MoreDownload the medial app to read full posts, comements and news.