Making a Purchase with Python (List and Dictionary)

shopping_list = ["banana", "orange", "apple"]

stock = {
  "banana": 6,
  "apple": 0,
  "orange": 32,
  "pear": 15
prices = {
  "banana": 4,
  "apple": 2,
  "orange": 1.5,
  "pear": 3

# Write your code below!
def compute_bill(food):
  total = 0
  for item in food:
  	total = total + prices[item]
  return total


This is the code of list and dictionary can do, This is the exercise for sum total price from grocery store of fruits

Using Sthetho to see Realm data in Android with Google Chrome Inspect Device

First install sthetho and realmstheto dependency in your gradle and add maven repository

allprojects {
    repositories {
        maven {
            url ''

And add compile repository to support realm sthetho

compile 'com.facebook.stetho:stetho:1.4.1'
compile 'com.uphyca:stetho_realm:2.0.0'

And then create class that extend your Android Aplication

New Java class and name it “”

import com.facebook.stetho.Stetho;
import com.uphyca.stetho_realm.RealmInspectorModulesProvider;
import io.realm.Realm;
 * Created by faisal on 17/05/17.
public class YourApplicationName extends Application {
    public void onCreate() {
        //realm init
        //init stetho realm

And add in your AndroidManifest.xml inside <application> </application>


After that open in google chrome in address bar type the address chrome://inspect  and will apear like picture below

After that choose resource -> Web SQL -> default.realm or your realm database name.

Samsung A3 2017 crashed

Samsung A3 2017 is one of many great mobile phone and I use this phone.

I have experienced that my Samsung A3 2017 is crashing, it’s cause I playing HTML 5 games. I click the power button still not starting.

But after I search in the internet about this case, I found the solution with press power button and two volume button in the same time. That three button hold around 10 seconds and the phone will starting again and resetting application that cause error.

I feel lucky that no harm in my phone  😁 😇

Hello world!

Every programmer use “Hello world!” to test their program whether is working or not.

Hello world! from Playsure to all reader.

Enjoy tutorial and story from Playsure programmer!

😇 😁😎