Posts

Calculator in python

Image
Hello Friends! NUPUR BANSAL I made a calculator using Tkinter  Here's the code: from tkinter import * import parser root = Tk() root.title('Calculator') i = 0 def factorial():     """Calculates the factorial of the number entered."""     whole_string = display.get()     number = int(whole_string)     fact = 1     counter = number      try:         while counter > 0:             fact = fact*counter             counter -= 1         clear_all()         display.insert(0, fact)     except Exception:         clear_all()         display.insert(0, "Error") def clear_all():     """clears all the content in the Entry widget"""     display.delete(0, END) def ...

Android Simple Login App

So lets gets started with our basic Android Simple Login App: Open your  Android Studio. Click on  Start a New Android Studio Project. Write your  Application Name  “LoginApp ”    and leave other fields blank as it is, then click  NEXT. Select the  Minimum SDK   “ API 15: Android 4.0.3(IceCreamSandwich)” .  I selected API 15 because it covers 94% device and it has almost all the features. If you want to cover 100% device then you can select  API 8: Android 2.2(Froyo).  But it has limitation on features. After selecting your API click on  NEXT. Select the  blank activity  and click  NEXT. Write the activity name “ Login”  and leave everything as it is. Click F inish. After clicking  Finish , it takes around 5 minutes to build your first activity, which is  Login Activity  . Now we will create  another activity  called “Main ”.   This activity wil...