Write a python function that accepts the number of feet and


Problem

Write a python function that accepts the number of feet and head as input as returns the number of rabbits and number of chickens. *Rabbit has 4 legs and 1 head *Chicken has 2 legs and 1 head Example: Input : rccount(400,150) [feet:400,heads:150] Output: Number of rabbits: 50 Number of chicken: 100 If any input is invalid or solution is not available, print "Invalid" **The function should be implemented without using loops in O(1) time.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Write a python function that accepts the number of feet and
Reference No:- TGS02722122

Expected delivery within 24 Hours