In python for the absolute beginner, we have this (page 28):(adsbygoogle = window.adsbygoogle || []).push({});

"If an alien has 3 heads, grows 1 more than double his total number of

heads, how many heads does the alien have?"

My formula is: (3 * 2) + 1

(For example, in this sequence, each sequential number is one more than double the next one: 2, 5, 11, 23, 47.)

but he gives (3 + 1) * 2 = 8. But he says one more than double his (current) total. So that seems incorrect.

Who is right?

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Error in python book?

Loading...

Similar Threads - Error python book | Date |
---|---|

Python Errors | May 6, 2016 |

Are errors important in calculating integrals in Python? | Jan 16, 2016 |

Python: Integrating a function but getting large errors | May 20, 2015 |

Python: Old-style to New-style Class Conversion Causes Error | Dec 11, 2012 |

Key error on python | Dec 25, 2011 |

**Physics Forums - The Fusion of Science and Community**