Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: [split] question about list comprehension
Post: RE: [split] question about list comprehension

ok yes that makes sense but I don't think I will use char as a variable name because that would totally confuse me. so basically because a string.__iter__ exists, it can be used in this way.
rmspacedashrf General Coding Help 17 5,680 Jan-25-2020, 01:13 PM
    Thread: for loop for lyrics
Post: RE: for loop for lyrics

the content you are planning on scrapping is property of the site you are scrapping it from. they DO embed watermarks and they DO litigate infringement. they already sued google for stealing from rap ...
rmspacedashrf General Coding Help 2 2,433 Jan-24-2020, 10:33 PM
    Thread: [split] question about list comprehension
Post: RE: [split] question about list comprehension

I didn't know you can do that! I asked my teacher if there was a char data type in python and he said no. only string. is there a char trap in string.__iter__?
rmspacedashrf General Coding Help 17 5,680 Jan-24-2020, 04:49 PM
    Thread: Hardware question re running Anaconda
Post: RE: Hardware question re running Anaconda

cpython compiles python 2.7 to super fast C code. then that compiles with gcc down to your architecture machine code. I think you can use the old numpy made for python 2.7 with cpython. one thing I l...
rmspacedashrf General Coding Help 6 2,977 Jan-23-2020, 04:23 PM
    Thread: how difficult its to move to Python 3.8 from Python 2.7
Post: RE: how difficult its to move to Python 3.8 from P...

can you explain what program, application, script etc you are attempting to run when you generate the error regarding 'setuptools'? I want to know what you are running and how you are running it. what...
rmspacedashrf General Coding Help 4 3,218 Jan-23-2020, 04:11 PM
    Thread: [split] question about list comprehension
Post: RE: [split] question about list comprehension

(Jan-12-2020, 05:11 PM)Armin Wrote: Thanks a lot for helping me understand this but now if I enter say 10 in this case the string it will be .split () will be output to '1' and '0' as then in the fo...
rmspacedashrf General Coding Help 17 5,680 Jan-23-2020, 03:58 PM
    Thread: Comparing
Post: RE: Comparing

== is false because they are two different data types. you need to do type conversion. or simply go back in the program and see if you are able to use integers instead of floats whatever it is you are...
rmspacedashrf General Coding Help 2 1,760 Jan-13-2020, 01:24 AM
    Thread: Newbie Question
Post: RE: Newbie Question

from the page I linked 2.7 3.5 3.6 and apparently 3.7 now also. what breaks in 3.8 exactly?
rmspacedashrf General Coding Help 4 2,811 Jan-13-2020, 01:13 AM
    Thread: Newbie Question
Post: RE: Newbie Question

http://www.open3d.org/docs/release/getting_started.html it is both
rmspacedashrf General Coding Help 4 2,811 Jan-13-2020, 01:08 AM
    Thread: Error message when trying to install Matplotlib in Python3.8
Post: RE: Error message when trying to install Matplotli...

I think pandas depends on matplotlib. you probably already had a version of matplotlib installed when you installed pandas. maybe that caused the error? matplotlib 2.2.2 Visualizationsee optional d...
rmspacedashrf General Coding Help 5 5,212 Jan-13-2020, 01:01 AM
    Thread: Basic function python
Post: RE: Basic function python

is he asking for a basic sorting algorithm? print(sorted([3,2,4,1]))
rmspacedashrf General Coding Help 9 162,268 Jan-13-2020, 12:14 AM
    Thread: [split] question about list comprehension
Post: RE: [split] question about list comprehension

y = [i for i in input('give me a number: ').split(',')] ^this is the expression i that will replace every instance of i where the condition is true y = [i for i in input('give me a number: ').sp...
rmspacedashrf General Coding Help 17 5,680 Jan-12-2020, 04:25 PM
    Thread: smallest Cosine distance in Graph
Post: RE: smallest Cosine distance in Graph

https://python-forum.io/misc.php?action=help&hid=25 you need two dimensions so that you can store data about your data and it will remain correlated even after a sort. https://snakify.org/en/les...
rmspacedashrf General Coding Help 3 2,342 Jan-12-2020, 08:06 AM
    Thread: **** PassWord
Post: RE: **** PassWord

I wonder if it breaks python to do import mygetpass as getpass
rmspacedashrf General Coding Help 13 17,876 Jan-12-2020, 07:31 AM
    Thread: smallest Cosine distance in Graph
Post: RE: smallest Cosine distance in Graph

Im new here so maybe I don't know but it looks like you are missing your tab spacing. Maybe try posting the code in code tags to preserve tab spacing. Do that first before I try to guess what is part ...
rmspacedashrf General Coding Help 3 2,342 Jan-12-2020, 04:49 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020