Posts by Marcos Lopes • 145 points
3 posts
-
9
votes2
answers13617
viewsQ: Python - 'int' Object is not iterable
Hi, I’m creating a character converter for your ascii code through a recursive Python function. However I have a problem "'int' Object is not iterable". This is my code: def cod(n): for i in n: i =…
-
2
votes1
answer3340
viewsQ: Python: Unsupported error operand type(s) for /: tuple and 'int'
Hi, I’m having a problem with a Python function, which involves a tuple stack. When performing this assembly function calling the tuple tuple votes: votacoes = ( (0, 15729, 220408, 1297, 0, 3040,…
-
2
votes3
answers381
viewsQ: How to create expression that returns 1,12,123,1234 in Python
I’m learning the basics of python and I came across an exercise where I have to build the following sequence: 1 12 123 1234 12345 123456 1234567 12345678 123456789 I think it’s something very simple…
pythonasked Marcos Lopes 145