Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107715 > unrolled thread
| Started by | Smith <smith@a-team.it> |
|---|---|
| First post | 2016-04-27 11:29 +0200 |
| Last post | 2016-05-18 17:02 -0700 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.lang.python
Basic Concepts Smith <smith@a-team.it> - 2016-04-27 11:29 +0200
RE: Basic Concepts Joaquin Alzola <Joaquin.Alzola@lebara.com> - 2016-04-27 09:32 +0000
Re: Basic Concepts alister <alister.ware@ntlworld.com> - 2016-04-27 10:53 +0000
Re: Basic Concepts Steven D'Aprano <steve@pearwood.info> - 2016-04-27 22:04 +1000
Re: Basic Concepts marcusjmurphy@gmail.com - 2016-05-18 17:02 -0700
| From | Smith <smith@a-team.it> |
|---|---|
| Date | 2016-04-27 11:29 +0200 |
| Subject | Basic Concepts |
| Message-ID | <ID%Ty.44611$pt.25847@tornado.fastwebnet.it> |
Fill in the blanks to declare a variable, add 5 to it and print its value: >>> x = 4 >>> x_ = 5 >>> print_ Any suggestion ? Thanks
[toc] | [next] | [standalone]
| From | Joaquin Alzola <Joaquin.Alzola@lebara.com> |
|---|---|
| Date | 2016-04-27 09:32 +0000 |
| Message-ID | <mailman.146.1461750462.32212.python-list@python.org> |
| In reply to | #107715 |
>>> x = 4 >>> x + 5 9 -----Original Message----- From: Python-list [mailto:python-list-bounces+joaquin.alzola=lebara.com@python.org] On Behalf Of Smith Sent: 27 April 2016 10:29 To: python-list@python.org Subject: Basic Concepts Fill in the blanks to declare a variable, add 5 to it and print its value: >>> x = 4 >>> x_ = 5 >>> print_ Any suggestion ? Thanks -- https://mail.python.org/mailman/listinfo/python-list This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.
[toc] | [prev] | [next] | [standalone]
| From | alister <alister.ware@ntlworld.com> |
|---|---|
| Date | 2016-04-27 10:53 +0000 |
| Message-ID | <_S0Uy.149982$ae3.79926@fx40.am4> |
| In reply to | #107715 |
On Wed, 27 Apr 2016 11:29:12 +0200, Smith wrote: > Fill in the blanks to declare a variable, add 5 to it and print its > value: > > >>> x = 4 x_ = 5 print_ > > > Any suggestion ? > > Thanks 2 suggestions:- 1) Stay awake during your class so that you can complete basic homework assignments. 2) Try reading the online python tutorial which covers this type of basic operation (& much more). assistance with homework can be obtained her but only if you have made some effort, posted your code and given some explanation of why you think it is not working. even then you will get suggestions to steer you in the right direction rather than working code. -- The more a man is imbued with the ordered regularity of all events, the firmer becomes his conviction that there is no room left by the side of this ordered regularity for causes of a different nature. For him neither the rule of human nor the rule of divine will exists as an independent cause of natural events. To be sure, the doctrine of a personal God interfering with natural events could never be refuted, in the real sense, by science, for this doctrine can always take refuge in those domains in which scientific knowledge has not yet been able to set foot. But I am persuaded that such behavior on the part of the representatives of religion would not only be unworthy but also fatal. For a doctrine which is able to maintain itself not in clear light, but only in the dark, will of necessity lose its effect on mankind, with incalculable harm to human progress. In their struggle for the ethical good, teachers of religion must have the stature to give up the doctrine of a personal God, that is, give up that source of fear and hope which in the past placed such vast powers in the hands of priests. In their labors they will have to avail themselves of those forces which are capable of cultivating the Good, the True, and the Beautiful in humanity itself. This is, to be sure, a more difficult but an incomparably more worthy task. - Albert Einstein
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve@pearwood.info> |
|---|---|
| Date | 2016-04-27 22:04 +1000 |
| Message-ID | <5720aab3$0$1611$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #107715 |
On Wed, 27 Apr 2016 07:29 pm, Smith wrote: > Fill in the blanks to declare a variable, add 5 to it and print its value: > > >>> x = 4 > >>> x_ = 5 > >>> print_ > > > Any suggestion ? Okay, you have a variable x with the value of 4: x = 4 How do you think you would print the value of x? Hint: here I print the value of z instead: print z -- Steven
[toc] | [prev] | [next] | [standalone]
| From | marcusjmurphy@gmail.com |
|---|---|
| Date | 2016-05-18 17:02 -0700 |
| Message-ID | <5156d16c-eddb-4302-b9da-db0ff2768f6e@googlegroups.com> |
| In reply to | #107715 |
On Wednesday, April 27, 2016 at 2:29:25 AM UTC-7, Smith wrote: > Fill in the blanks to declare a variable, add 5 to it and print its value: > > >>> x = 4 > >>> x_ = 5 > >>> print_ > > > Any suggestion ? > > Thanks >>> x = 4 >>> x += 5 >>> print(x) 9
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web