Thanks for the help!
Using while True helps alot!
Paulo Repreza
--
http://mail.python.org/mailman/listinfo/python-list
hat I'm trying to do is to print the new value that ranum generates if the
condition is not met. So far if you run the script it prints the same value
over and over again, making in an infinite loop. What can I do in order to
print out the new value generated every time the condition
Hi,
Try this.
# aptitude update
# aptitude update
# aptitude upgrade you can also use # aptitude safe-upgrade
Hope it helps.
Paulo Repreza
On May 1, 2009 7:20 PM, "watermod" wrote:
I was doing one of those auto apt-get gui things with update manager in
Debian and not watching the
-
I've noticed that the 'menu_option; var' it's not a string so that's why I
see this error, but I tryed by doing str(menu_option) and it works, but when
I enter a digit 1, 2, 3, 4, 9 it won't take me to that particular option,
instead it shows the menu all over again and the only way I can exit the
program is by doing ctrl + C.
Any hint on how I can change the code in order for me to use the menu
regarding if is a string or an integer (menu_option)?
Thank You!
Paulo Repreza
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Thanks for your reply. It worked.
Paulo Repreza
On Sat, Jan 31, 2009 at 4:25 PM, Robert Kern wrote:
> On 2009-01-31 18:19, Paulo Repreza wrote:
>
>> Hi,
>> I'm just learning the very basics of python and I ran into this problem
>> in version 3.0/3000:
>
nt (x*y)
TypeError: can't multiply sequence by non-int of type 'str'
But when I run the same code with Python 2.6.1 it does prints the result.
Is there any special function that I should add in order to work properly
under Python 3.0?
Thanks,
Paulo Repreza
--
http://mail.python.org/mailman/listinfo/python-list
Thank You!
On Tue, Dec 23, 2008 at 3:49 AM, Steve Holden wrote:
> Chris Rebert wrote:
> > On Mon, Dec 22, 2008 at 10:19 PM, Paulo Repreza
> wrote:
> >> Hi,
> >>
> >> I'm a newbie with python and I recently bought Beginning with Python
> (Which
&
Hi,
I'm a newbie with python and I recently bought Beginning with Python (Which
is a book I recommend) but the problem that I'm facing it's the following:
*This is the code:
*
#!/usr/bin/python2.5
# Filename: str_format.py
age = 25
name = 'foobar'
print('{0} is {1} years old'.format(name, age))