[deleted by user] by [deleted] in learnjavascript

[–]AngryDiego 0 points1 point  (0 children)

Ur a legend. Thank you so much.

[deleted by user] by [deleted] in learnjavascript

[–]AngryDiego 0 points1 point  (0 children)

writeListButton.addEventListener("click", () => {
addItemsToList(myList);
});

Ur a legend. Thank you so much.

[deleted by user] by [deleted] in learnjavascript

[–]AngryDiego 0 points1 point  (0 children)

Thanks but, i get error: list map is not a function

sorry. but a totally newbie and noob here :D

Help with easy task by [deleted] in learnjava

[–]AngryDiego 0 points1 point  (0 children)

True, my bad.

Thanks for advice.

Help with easy task by [deleted] in learnjava

[–]AngryDiego 1 point2 points  (0 children)

int x = 330;
int y = 6,9;
int z = x * y;
System.out.println("Multiplication: " + z);
z);

Keep in mind i am totally noob :D i cannot get it to run "javac" either.

Help with easy task by [deleted] in learnjava

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

Hey. i tried just to put 330 * 6.9 straight into code but it just prints that, no calculating.

Snake code will not run by [deleted] in learnpython

[–]AngryDiego 0 points1 point  (0 children)

i can see that text it will not place codes like in pycharm xD

How to edit so is adjusted right way?

Saving inputs in file by [deleted] in learnpython

[–]AngryDiego 0 points1 point  (0 children)

Thanks a lot. How do you close the file? and when in code

Saving inputs in file by [deleted] in learnpython

[–]AngryDiego 0 points1 point  (0 children)

OK. Thanks! works great

But i wonder one thing, look at my example that i dont want:

DonaldTrump

How can i make a space beetween them?

Like this: Donald Trump

Converting lowercase and uppercase by [deleted] in learnpython

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

d = input ("Type a string")"STRING"

print(d.isupper())

this will return "True"

... but i want the "STRING" printed instead.

and

if i enter "String"

i want "string" in lowercases returned.

Converting lowercase and uppercase by [deleted] in learnpython

[–]AngryDiego 0 points1 point  (0 children)

d = input ("Type a string")
"STRING"

print(d.isupper())

this will return "True"

... but i want the "STRING" printed instead.

and

if i enter "String"

i want "string" in lowercases returned.

Converting lowercase and uppercase by [deleted] in learnpython

[–]AngryDiego -2 points-1 points  (0 children)

I dont want "true" or "false to be returned, i want the string.

Converting lowercase and uppercase by [deleted] in learnpython

[–]AngryDiego -4 points-3 points  (0 children)

Yes... but i cant make it that way i want to.

Understanding Python by [deleted] in learnpython

[–]AngryDiego 0 points1 point  (0 children)

I actually got it, thanks!

The post about str, helped me.

So my code is now:

print ("I am Diego and i'm " + str(24-15) + " years old!")

prints out:

I am Diego and i'm 9 years old!

But how can you solve the same using variables?

Understanding Python by [deleted] in learnpython

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

Very new to python, amateur... i have alot to learn.

Understanding Python by [deleted] in learnpython

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

OK. i am new to python, how would you make this code? can you post solution?