Message from Python discussions
November 2018
— Oh I see. Sorry my bad
I want to learn Python....Is there is any scope for network engineer to learn Python ??
Anyone here please guide me
Thanks in advance ...
— Is that your assignment?
— TL;WR.
— Yes
— Is homework
—
lst = [8, 10, 6, 4, 2]
#swapped = True
'''while swapped:
swapped = False'''
for i in range(len(lst) -1):
if lst[i] > lst[i + 1]:
print(i)
#swapped = True
lst[i], lst[i +1] = lst[i + 1], lst[1]
print(lst)
— Pls someone should help me understand the output i am getting....the for loop and if is confusing me
— Please anybody to help
— I need to convert this into text (nearly 2000 pages are there)
But it is not in normal font so i am getting full content converted into text while processing
What should I do now??
Should I teach python to understand each letters??
— I was wondering how to run code after executing task.react() from twisted.internet. Basically, I have a function (main()) which I execute with react(main()). However, any code I write after react(main()), gets ignored.
For example:
‘‘‘print(‘abc’)
react(main())
print(‘ghf’)‘‘‘
prints just ‘abc’.
Also, if I put react in a for loop:
‘‘‘for i in range(2):
react(main())‘‘‘
it executes just once and than stops.
Anyone have any suggestions as to how to avoid this?
— Guys...anyone working here with qiskit package