Hey so I've been learning Java for a little while and have now started with python. I was watching tutorials on slice and lists and I was wondering how you could print out the last letter of a string. An example would be the last letter of each word in this post, I know you need to turn it to a list. I saw further tutorials but no one really answered my question so I was wondering maybe you dont use slice for this but you use is.alpha?
Many thanks for helping !
>>7848507
maybe
print(yourstring[-1])
will do the job...
just watch thenewboston tutorials. he explains it for total noobs
Thanks for answering but I think that will only give me the last letter of the entire string and not the last letter of each word.
yourstring = """ I want to learn programming"""
#Lets say i want the last letter of each word.
mylist = yourstring.split()
would print(yourstring[-1]) do the job?
So LIGO results get published tommorow. Probably. How many of you have your GR up to scratch enough to read the paper?
bump.
interesting
This will happen:
- half the theoreticians will see their pet theories buried alive
- the other half will try to find more evidence for being right
- string theoreticians will yet again dial another set of knobs and exclaim this fits well with their existing framework.
I confidently ignored the waves chapter in Wald back when I had my GR lecture. I probably should read up on it when exams are over.
It's a old article, but:
http://www.dailymail.co.uk/news/article-1331769/Doctors-stunned-conjoined-twins-share-brain-thoughts.html
Thoughts?
>>7848417
I don't understand why our species insists on keeping our defective members alive. Before you get emotional about >muh life, consider that we chemo cancer cells because they are defective even non-malignent ones. We do the same thing with animals.
So why do we insist on keeping gays and trannies alive?
>>7848428
I would consider people who lack empathy to this degree to be "defective"
How many consciousnesses does it have?
[math] \frac{dcos(x)}{dsin(x)}=? [/math]
>>7848404
>The derivative of cos(x)
>With respect to sin(x)
0.
>>7848410
elaborate
>>7848404
what does this mean? define your terms. it's probably infinite if you define it well, since the linear part of sin is x and the linear part of cos is 1
How can i fall asleep easily?
>inb4 4-7-8 method
>>7848387
I don't know.
chug melatonin pills
wear a blindfold
put in sound blockers
start dreaming
>>7848440
No no no, that's dangerous. Your body needs to be aware of your surroundings. Next thing you know, you might be tied to your bed being raped to death by 7 niggers when you could've escaped in time through the window if you heard them breaking in your house.
Try to clear your mind from all thoughts, OP. Relax your body. Solve any problems that might be haunting your sub-conscious and preventing you to sleep well.
[math] {math shit here} [/math#]
Stop posting these. Either type it in a text editor and compile it or find one of those online LaTeX editors.
>>7848347
I think it's a good idea senpai
>>7848347
The userscript listed in the /sci/ help guide is down desu.
posting science stuff
Will taking opiates hurt my brain?
Yeah.
>>7848239
If you don't overdo it it's probably fine
>>7848239
The main problem is that you will not notice.
Something something Chinese nuclear fusion
Something something 50 million degrees for 100 seconds.
Discuss.
http://www.popularmechanics.com/technology/infrastructure/a19350/chinese-east-fusion-reaction-sustains-102-second-plasma-blast/
Either Germans and Chinese are going to be the first to have unlimited free energy within our lifetimes. Whoever wins we lose.
>>7848100
>Whoever wins we lose.
I'm fine with a fourth reich to be honest.
germans are extremely efficient.
If I have to live in a distopian world, it better be perfectly organized, respect sciences and engineering, and have blondes and beers as values.
>>7848103
>If I have to live in a distopian world, it better be perfectly organized
A perfectly organized world could only be seen as dystopian if you are a non-german.
So, consider the sum defined by :
[math]T_0 (n)=1[/math]
[math]T_m (n)=\sum_{k=1}^n T_{m-1} (k)[/math]
How can I apply this to actual useful stuff ?
How can I use this ?
'cause I got a simple formula for this
>>7848052
when you do something but you don't know why the fuck you did it means you got too much free time and you're wasting it
>>7848052
it looks a bit like ackerman shit. But it's not. let's see what it makes for small m:
T1(n)=n
T2(n)=n(n+1)/2
T3(n)=sum of above shit...
well i wonder what your formula is.
and no, it's not n^m.
>>7848104
with a bit of intuition you realise that your sum of sums comes from columns from the pascal's triangle, so you get something like this with a bizarre proof :
[math]T_m (n)=\dbinom{m+n}{n}[/math]
And I was asking myself, maybe I can represent this in general with some geometrical figure with cubes and shit, you know ?
>>7848086
I like to prove stuff, I've got a bit of free time, being in Terminale in France, I guess that's the equivalent of 13th grade, but don't worry, I'm not underaged
What would the world look like if we allowed students to use a CAS like Maple or Mathematica whenever they wanted (i.e. during tests/quizzes) instead of teaching them to memorize algebraic transformations?
As computers become more ubiquitous, doesn't the likelihood that we'd ever be forced to go without these tools tend to zero? I can see a future where some Google Glass kind of device automatically scans and parses mathematical formula we look at and allows us to simplify/plot/solve/etc. them, so at some point things are going to get to the point where students are doing this anyway.
>>7848022
tell me, what is the purpose of exercises? Doing them yields no tangible reward so it's not like you're getting anywhere either way. The whole point is to gain understanding and intuition.
The most important thing to learn in college is how to think logically and criticality. The solution is not the end game and memorization is not higher learning.
>>7848027
>tell me, what is the purpose of exercises?
Well in most cases it's just about applying "standard algorithmic technique #406" to a problem for the hundredth time. Allowing the use of software that makes this trivial would force teachers to ask better questions of their students.
So I've been having an argument with a buddy of mine for years now over this topic.
Is nothing, to the literal sense, a thing?
I would say no. It the opposite of a thing.
>>7848007
>debating the unanswerable
>>7848007
Nothing is the total absence of "thing".
It also doesn't exist, because even space has dark energy and what have you.
Did any of you struggle with retard level maths only to do better in college/uni?
>>7847981
im in uni and still dont know retarded-level maths .
i've done a few courses in mathematics and passed them with ok grades but i still go to wolfram\google elementary school level arithmetic all the time .
>>7847985
Whut? Why don't you just learn it? It will take a couple weeks to a month at most.
Well, I "failed" out of Algebra 2 my freshman year of high school (got a C- so they made me switch to a lower class) and haven't gotten lower than an A- in a math class since then (currently a sophomore math major), so I'm pretty sure that was the kick in the ass I needed to get my shit together. I'm of the opinion that near anyone can learn things up to undergrad level math with hard work.
People like this make me lose faith in humanity.
I mean, that's no dumber than saying god gave it to you.
typical libtard conspiracies.
The world is no more or less "lost" than it ever was.
Not to sound like an edgy fuck, but the sad fact is that most people lack critical thinking skills and basic logic. Don't get upset about it or you'll be upset all the time. Just ignore them and keep doing as you do.
<neat>
>>7847904
>meme scientists
and heisenberg and turing
>>7847910
what is actually a "meme scientists" ?
>>7847932
a scientist whose reputation is blown way out of proportion, like tesla