![]() |
| ||
| Adding info to a variable I have the variable Adam that contains some information. Later on i have some more information to add to the variable adam. How can this be done something like adam = "john" |
| ||
| Re: Adding info to a variable It depends on the type of data and how you intend to use it. >>> adam = "john" |
| ||
| Re: Adding info to a variable If you want to do that to an int and you just want to add it on the end then you could go: >>> adam = 123 |
| ||
| Re: Adding info to a variable You seem to be wanting to store a collection of information. Have a look at lists, sets and dictionaries in the python documentation. - Paddy. |
| All times are GMT -4. The time now is 5:00 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC