Welcome to Code Sharer, a code gallery for creating, saving and sharing all kinds of code snippets.

Python — Variables And Names

Posted On: Saturday, January 14, 2017 at 7:56 AM

A sad little script to show the summation of variables and defining names.
cats = 100
space_in_a_car = 4.0
homes = 30
passengers = 90
homeless_cats = cats- homes

print "There are", cats, "cats available."
print "There are only", homes, "homes available."
print "There will be", homeless_cats, "homeless cats"

Ryan Bradley-Evans (Admin)

Joined on
Contributed 16 Snips

Get Social and Share