Questions By persis crystal

Python Enumerate Dictionary

How can I create a python dictionary by enumerate function?

1answer

3rd August 2020


Collatz Sequence Python

Can anyone give an example python program to test Collatz Conjecture for a given number?

1answer

3rd August 2020


Python Rs232

What is the use of rs232?

1answer

3rd August 2020


Golang Channel Multiple Receivers

Why are multiple goroutines listening on one channel?

There are multiple goroutines in my code to receive over the same channel concurrently, but The message gets passed around all the goroutines. 

x := make(chan string)

for j := 0; j < 5; j++ {

    go func(j int) {

        msg := <-x

        x <- fmt.Sprintf("%s, hello from %d", msg, j)

    }(j)

}

x <- "original"

fmt.Println(<-x)

Output:

original, hello from 0, hello from 1, hello from 2, hello from 3, hello from 4

 

1answer

3rd August 2020


Golang Invalid Indirect

What does invalid indirect of a literal mean?

1answer

3rd August 2020


Dictionary Keys To List

How to get dictionary keys as a list in python?

1answer

20th August 2020


Semicolon In Python

Why semicolon is not used in python?

1answer

20th August 2020


Python End Of File

How can I find whether my file is eof or not?

1answer

20th August 2020


GET STARTED

Speak with a Learning Advisor

Understand how the industry and practically oriented courses at Mindmajix transform your career.

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos