DS-Python: 10 NOV-15 DEC | Shivendra

Discussion in 'Big Data and Analytics' started by Shalini Rana, Nov 10, 2018.

  1. Shalini Rana

    Shalini Rana Well-Known Member
    Simplilearn Support

    Joined:
    Jul 24, 2017
    Messages:
    321
    Likes Received:
    17
    Hi Learners,

    This thread is for you to discuss the query and concepts related to Python for Data Science course.

    Happy Learning !!

    Regards,
    Team Simplilearn
     
    #1
  2. _46594

    _46594 New Member

    Joined:
    Nov 5, 2018
    Messages:
    1
    Likes Received:
    0
    Today's session with Mr. Shivendra Kumar was great.
     
    #2
  3. bamadeva

    bamadeva Member

    Joined:
    Aug 14, 2015
    Messages:
    2
    Likes Received:
    0
    python installation issue

    I have installed Anaconda and able to open Spyder, jupyter note book, but when I try to run python on command prompt, it doesn't work.. Does it mean I have to install python separately apart from Anaconda? Any body has documented how to make ready the machine for DS with python, please share.

    Regards
    Bamadeva
     
    #3
  4. bamadeva

    bamadeva Member

    Joined:
    Aug 14, 2015
    Messages:
    2
    Likes Received:
    0
    I try to execute the below program, here the else part print statement is not executed (program runs fine as expected).. Any issues in my code. I tried in both windows and mac... not able to identify the issue.. could anybody please help me to resolve this.

    import numpy as np
    n=int(input("Enter a number"))
    r=np.random.randint(1,10);

    while n!=r :
    if n>r:
    n=int(input("Entered number is greater, Enter a number again"))
    elif n<r:
    n=int(input("Entered number is lower, Enter a number again"))
    else:
    print("guessed number is correct")
    break
     
    #4
  5. _45897

    _45897 New Member

    Joined:
    Oct 30, 2018
    Messages:
    1
    Likes Received:
    0
    elif n>r:
    n=int(input("Entered number is greater, Enter a number again"))
    else:
    n=int(input("Entered number is lower, Enter a number again"))



    in your code:
    if n == r, while condition is false. So it will not go inside while loop. That's why it was not executing the else part
     
    #5
  6. _31429

    _31429 Member

    Joined:
    May 7, 2018
    Messages:
    6
    Likes Received:
    1
    I am not able to see the recording of class 4(18th November). It says file format is not valid. Pls check
     
    #6
  7. _45367

    _45367 Member

    Joined:
    Oct 26, 2018
    Messages:
    2
    Likes Received:
    0
    Please post a link of the recording on session 04 (Nov 18). Thanks
     
    #7
  8. Priyanka_Mehta

    Priyanka_Mehta Well-Known Member
    Simplilearn Support

    Joined:
    May 25, 2017
    Messages:
    880
    Likes Received:
    57
    Hi All,

    Apologies for the inconvenience caused due to error in the recording file. We have forwarded it to the concerned team and the needful will be done as early as possible.However, there should no delay in your learning, so kindly find the link mentioned below to download the recording of 18th Nov session:
    https://simplilearnsolutions.webex....ldr.php?RCID=e60e4179d415d3cf12ae74c639a68617

    I am sure this will help you. We really appreciate your cooperation in this regards.
     
    #8

Share This Page