Replace if name == "tablet" with elif name == "tablet". Also give this a read.
if name == "tablet"
elif name == "tablet"
Thanks