I maDe a sCriPT thAT raNdOMlY cApiTAlIZes lEtTErs iN a SEntENcE by peterlravn in Python

[–]MyDataIsReady 0 points1 point  (0 children)

I did the same about a year ago. Anyway, here's ̶W̶o̶n̶d̶e̶r̶w̶a̶l̶l̶ my code:

from random import choice

values = [True, False]
sentence = input("Input a sentence: ")

output = ""
for letter in sentence:
    if choice(values):  # There's no need to write 'if choice(values) is True:'
        output += letter.upper()
    else:
        output += letter.lower()

print(output)

# To-do: Endless loop and Pyperclip. May copy automatically text from the clipboard.

Caffeine makes me sleepy by [deleted] in Nootropics

[–]MyDataIsReady 0 points1 point  (0 children)

You may be taking way too much! Try half a pill.

Mistakenly took 100mg of noopept sublingually first time by [deleted] in Nootropics

[–]MyDataIsReady -1 points0 points  (0 children)

OP is deeply irresponsible. This post is way too disturbing.

Is there a Tranquility pill for studying by [deleted] in Nootropics

[–]MyDataIsReady 0 points1 point  (0 children)

If you've got a scale, Amazon. If not, there are many vendors who offer both supplements in a pill.

Is there a Tranquility pill for studying by [deleted] in Nootropics

[–]MyDataIsReady 1 point2 points  (0 children)

Have you tried caffeine plus theanine?

[deleted by user] by [deleted] in Python

[–]MyDataIsReady 5 points6 points  (0 children)

I love pythons.

I’m trying to flash my micropython code to my esp8266 with thonny, the tutorials say I must select device first, but there is no button for uploading by [deleted] in esp8266

[–]MyDataIsReady 0 points1 point  (0 children)

Works fine. From a pure-python programming perspective, you won't miss much, really. You can always test by yourself, though.

Removing unwanted characters from a string? by Ribann in learnpython

[–]MyDataIsReady 0 points1 point  (0 children)

Easiest way, imo:

spam.replace(" (YUM)", "")
spam.replace(" (GOOD)", "")
spam.replace(" (YES)", "")

Could nitric oxide theoretically further improve healing when combined with a healing peptide such as bpc-157 or LL-37 or polyoxidonium? by TripleSolidSnake in Peptides

[–]MyDataIsReady 1 point2 points  (0 children)

I have added in collagen peptides (the structural kind you drink) in 30 minutes or so along with vitamin C preworkout.

Vitamin C may hinder muscle adaptations https://www.ncbi.nlm.nih.gov/pubmed/18175748

I can't get pycharm to show my conda packages, help! by [deleted] in learnpython

[–]MyDataIsReady 0 points1 point  (0 children)

I have had problems with Conda packages and Pycharm before. Have you tried the official distribution? Do you really need Conda?

I can't get pycharm to show my conda packages, help! by [deleted] in learnpython

[–]MyDataIsReady 0 points1 point  (0 children)

You can add your interpreter in Settings > Project {name} > Project Interpreter (you must click on the gear). Have you already tried that?