![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2008
Posts: 2
Rep Power: 0
![]() |
Few questions.
Yes, the title is inaccurate, but I just couldn't think of better.
Questions.. 1. How can I save the current, well, 'a' a = 5
input = input("enter a number: ")
a = a+inputa = 20 b = 464 c = 4644 In main.py I have the thing like a = 5 and the enter a number thing and a=a+number. And when I am using the main script, it auto saves current values, like if I change the a, save.py gets it's current value. And for the second question: Can I define functions and do other stuff in random.py and somehow import it to main.py and I could use sum(a,b) in the main.py, which is defined in random.py. I hope you get it. Thank's in advance, Bevardis. |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Jun 2008
Posts: 2
Rep Power: 0
![]() |
Re: Few questions.
I couldn't find edit..
One more question. Is there a way to randomize, something like make it up-to X or A or B? |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| hardware questions | programmingnoob | Coder's Corner Lounge | 28 | Aug 8th, 2006 8:04 PM |
| Novice questions. | snafu | Python | 3 | Oct 5th, 2005 5:03 PM |
| ucf cs student has some questions | raspberryh | Coder's Corner Lounge | 33 | Sep 12th, 2005 2:49 PM |
| Emergency: Confusing C Programming assignment questions | silvia | C | 3 | Jul 13th, 2005 3:39 AM |
| n00b questions..A thread on dumb questions. | Cipher | Coder's Corner Lounge | 12 | Apr 12th, 2005 9:42 AM |