#18 Python Tutorial for Beginners | User input in Python | Command Line Input

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น • 1.2K

  • @lijeshjosy5616
    @lijeshjosy5616 6 ปีที่แล้ว +823

    The way you making mistakes intentionally and correcting is the best of this videos which makes best way of learning.. learning from mistakes

    • @meenaganesan1005
      @meenaganesan1005 5 ปีที่แล้ว +8

      yeah that;s right
      He's awesome

    • @anshukumar3928
      @anshukumar3928 5 ปีที่แล้ว +4

      chup .chal nikal,phli fursat

    • @lakshkaushik6366
      @lakshkaushik6366 5 ปีที่แล้ว +3

      @@anshukumar3928 sahi hai bancho

    • @akshaybanaye
      @akshaybanaye 4 ปีที่แล้ว +7

      It reminds me of the time front benchers would teach us on the exam day.

    • @horror4097
      @horror4097 4 ปีที่แล้ว +5

      Best teacher❤️❤️

  • @vinodkumar283
    @vinodkumar283 4 ปีที่แล้ว +66

    Man, the way you explain... Thats how a teacher should be. Thank you so much for all the treasures you create.

  • @dineshreddy9048
    @dineshreddy9048 2 ปีที่แล้ว +6

    The best channel for all programming courses print("Ichata anni proramming course lu nerpinchabadunu")

  • @paulka427
    @paulka427 2 ปีที่แล้ว +30

    I tried a Udemy course to learn Python and so far these videos are so much easier to follow. And Navin explains the logic behind things which Udemy doesn't.

    • @chandraprasathr8231
      @chandraprasathr8231 10 หลายเดือนก่อน

      Bro From which platform are you doing online course suggest Me

    • @paulka427
      @paulka427 10 หลายเดือนก่อน

      @@chandraprasathr8231 google "python for everyone" it is a great beginner python course, it is free and available on a couple platforms

  • @pavanb4149
    @pavanb4149 4 ปีที่แล้ว +6

    One of the best teachers i encountered in my life, extraordinary expression skills.Many people have knowledge but expressing them in such away that all sections of people understands is an excellent job. I am a university student struggling a lot to do my python assignments from last 25 days.I saw many videos and searched lot of websites but i dint get what i want and gave it up.Luckily i saw your channel today ,But just watching first 3 videos i got confidence that i can do it.

  • @AMARJEETKUMAR-rd5mb
    @AMARJEETKUMAR-rd5mb 6 ปีที่แล้ว +13

    Sir you are the one of the best tutor i have ever seen i wish that our college tutor would be like you. I just hope the teachers will get some inspiration from you and try to teach in the same way you teach us.

  • @flyingbirds4235
    @flyingbirds4235 6 ปีที่แล้ว +17

    Sir, You Are The Best. I never had the intention to learn Python but because of your lectures and motivation videos, I started learning.

  • @Vyooom
    @Vyooom 5 ปีที่แล้ว +52

    Homework done....you are teaching awesome better than the paid courses 😊🙏🙏
    x = int(input ("no."))
    z = x**3
    Print (z)

    • @harpreet_dhiman
      @harpreet_dhiman 4 ปีที่แล้ว

      @@meetsakhareliya755 video k end mein dekho red colour k box mein hota hai

    • @superprocz
      @superprocz 4 ปีที่แล้ว

      Why do you have ther “no”? Thats string not int😅😅
      (I think its joke)

    • @prathyushaduddyala8279
      @prathyushaduddyala8279 3 ปีที่แล้ว

      Thank you

    • @VagetaSenpai
      @VagetaSenpai 3 ปีที่แล้ว +3

      x= int(input('enter 1st number'))
      print(x**3)

    • @feagy
      @feagy 3 ปีที่แล้ว

      Can we write this using less line buddy?

  • @vardhanchinnu3328
    @vardhanchinnu3328 5 ปีที่แล้ว +81

    from sys import argv
    x=int(argv[1])
    y=int(argv[2])
    z=x+y
    print(z)
    This is also working😎

    • @nadeemshaik157
      @nadeemshaik157 4 ปีที่แล้ว +2

      Super dude

    • @mushsh4784
      @mushsh4784 4 ปีที่แล้ว +3

      Also this works:
      from sys import *
      x=int(argv[1])
      y=int(argv[2])
      z=x+y
      print(z)

    • @chaitanyasai9282
      @chaitanyasai9282 3 ปีที่แล้ว +2

      THIS ALSO HAS WORKED, NO NEED TO USE ARGV, AS CONSOLE GIVES A SINGLE NUMBER
      x = int(input('enter a value'))
      y= x**3
      print(y)

    • @chaitanyasai9282
      @chaitanyasai9282 3 ปีที่แล้ว +1

      @@saisateeshkasaragadda7145 in pycharm you can even edit the code after running. in python IDE you cant edit. indly check clearly in which you have compiled.

    • @sanseongbi
      @sanseongbi 4 หลายเดือนก่อน

      Import sys
      X = int(sys.argv(1)
      Z = X**3
      Print(Z)

  • @arunvictor1
    @arunvictor1 ปีที่แล้ว +9

    "Thank you for creating such excellent Python tutorials! I've been practicing from the beginning and have found them to be very helpful. One thing that would make them even better would be if you could provide practice exercises with answers at the end of each video. This would help me to test my knowledge and reinforce what I've learned. Thanks again for all your hard work!"

  • @ukaszjonski3051
    @ukaszjonski3051 3 ปีที่แล้ว +4

    4 godziny wykladów nie dadzą tyle co 5 minut sluchania tego gościa, uwielbiam go

  • @shailendrakumar7989
    @shailendrakumar7989 4 ปีที่แล้ว +17

    Navin Ji I Am A Faculty Of Computer Science, Having 30 Years Experience,
    Your Class Going In Classical Way.
    My Aashribad Is With You.

  • @raulferreira4925
    @raulferreira4925 5 ปีที่แล้ว +259

    Ok ok I don't speak English very well, but I understood more you video than other videos Spanish🙆‍♂️ thank's

  • @AKHAN-no1bz
    @AKHAN-no1bz 3 ปีที่แล้ว +2

    The fact that you get errors and correct them right after by showing us... thats what i call teaching and learning. 👏👏👏👏

  • @mayankthakur5927
    @mayankthakur5927 2 ปีที่แล้ว +25

    1. For Pycharm
    x = int(input("Enter a number:"))
    y = x*x*x
    print("The cube of the number is ",y)
    2. For Command Line
    import sys
    x = int(sys.argv[1])
    y = x*x*x
    print("The cube of the number is ",y)

  • @anoop69304
    @anoop69304 4 ปีที่แล้ว +3

    You are the best person I saw in any TH-cam video
    Any....

  • @hasibkhan8600
    @hasibkhan8600 5 ปีที่แล้ว +25

    1st Q Answer:
    num = int(input("Enter a number: "))
    result = num ** 3
    print(num, "Cube result is: ", result)

    • @techops6716
      @techops6716 5 ปีที่แล้ว +4

      x = int(input("enter the cube number"))
      cube = x*x*x
      print(x,"cube result is",cube)
      " is my logic corrct"

    • @azazzelx
      @azazzelx 5 ปีที่แล้ว +16

      @@techops6716 can simplified with:
      x=int(input("Enter the number to be cubed "))**3
      print("The result is",x)

    • @dishantkumbhar8822
      @dishantkumbhar8822 4 ปีที่แล้ว

      @@azazzelx very efficient 🔥

    • @prathyushaduddyala8279
      @prathyushaduddyala8279 3 ปีที่แล้ว +1

      1st answer
      X = int(input("enter the number to be cubed")) **3
      If x! = int:
      print(x)

  • @Rakeshkumar-li7fs
    @Rakeshkumar-li7fs 4 ปีที่แล้ว

    I have just paused the video in the middle and came here to say..you are awesome,great way of teaching in simple language without complicating things..you are simply superb,mind blowing..I want you as my teacher of programming,please.

  • @cadillacjerm760
    @cadillacjerm760 6 ปีที่แล้ว +21

    you are a great teacher bro, keep it up! look forward to learning programming under your guidance!
    a=you're
    b=great
    print (a + b)

    • @rohankiratsata1161
      @rohankiratsata1161 5 ปีที่แล้ว +14

      There is a mistake bro...
      If Want to Store Any Sentence or Anything Character then It Should Be in quotes (type is String)
      Like this: a = "Hello"
      b="How r u"
      Print(a+b)...

    • @funkydiab
      @funkydiab 2 ปีที่แล้ว

      @@rohankiratsata1161 also, it would print HelloHow r u so you need to add space after hello

  • @subhanquliyev4400
    @subhanquliyev4400 6 ปีที่แล้ว +1

    to make a mistake and solve this problem step by step is the best teaching method for me not only for me but also for all watchings.thank u

  • @yerranagatharun9856
    @yerranagatharun9856 2 ปีที่แล้ว +4

    print("Fnding cube of a number ")
    import sys
    x=int(sys.argv[1])
    y=x**3
    print(y)
    is the answer for the assignment
    I am enjoying watching these series, thankyou navin sir

  • @gigawiz3472
    @gigawiz3472 3 ปีที่แล้ว +2

    Sir you are the only channel who doesn't hides his mistakes Thanks a lot

  • @AshokKumar-mk1nr
    @AshokKumar-mk1nr 4 ปีที่แล้ว +7

    Really, It's very interesting.... the way you carry the session is awesome.. intentionally you did mistake and rectify it, that is experience.... really its very useful
    .

  • @b4xin802
    @b4xin802 4 ปีที่แล้ว

    For first problem its so easy you can use
    ---------
    X = input("write 1st number")
    Y = input("write 2st number")
    print(x+y)
    ---------------
    Its actually worked 😊😊

  • @HeavenVacancy
    @HeavenVacancy 3 ปีที่แล้ว +7

    Little late to the fanfare party, but I agree! this man deserves some recognition among upcoming programmers.

  • @dexter_world6189
    @dexter_world6189 4 ปีที่แล้ว +1

    awesome :) 10:09 "data got corrupt while transferring from brain to mouth" it show the real programming mind awesome!!!

  • @creativityunleashed9101
    @creativityunleashed9101 5 ปีที่แล้ว +10

    ------command line-----
    import sys
    x = int(sys.argv[1])
    y = x ** 3
    print(y)

    • @AKHIL.438
      @AKHIL.438 6 หลายเดือนก่อน

      It's showing eof error how can I overcome it please reply 😢😢😢😢😢😅😢😢😢

  • @arjunvarmamaths1349
    @arjunvarmamaths1349 3 ปีที่แล้ว +1

    Thanks Anna..they way u tech is very special....
    By the end of python course I have to learn 2 things one is python and second is the way u teach 😃 ..
    Of course it's impossible to get second but I will try🤘😆

  • @MukeshKumar-of8gv
    @MukeshKumar-of8gv 4 ปีที่แล้ว +3

    4:32 and the award for best actor ,best teacher goes to Mr. Navin .

  • @SanjeetKumar-eg8xf
    @SanjeetKumar-eg8xf 4 ปีที่แล้ว

    Best teacher i have ever met. Thanks a lot sir.

  • @yasmeenkarachiwala9612
    @yasmeenkarachiwala9612 5 ปีที่แล้ว +13

    Assignment:
    import math as m
    x = int(input("Enter the number: "))
    print (int(m.pow(x,3)))

    • @sainikhila4027
      @sainikhila4027 4 ปีที่แล้ว +1

      good one

    • @ajaybhandari9215
      @ajaybhandari9215 4 ปีที่แล้ว

      plz help i wrote the same way but getting error, i made a little change
      import math as m
      x = int(input("Enter the number: "))
      print (int('the result is',m.pow(x,3)))
      and the error is
      TypeError: 'float' object cannot be interpreted as an integer
      y bro plz tell me

    • @himanshuarora9572
      @himanshuarora9572 4 ปีที่แล้ว

      @@ajaybhandari9215 bro if u have defined int then use integers only not floats
      Floats-5.6 or anything with a decimal point
      Integer are set of positive and negative numbers not fraction or decimal

    • @astakalasuswith6946
      @astakalasuswith6946 4 ปีที่แล้ว

      @@ajaybhandari9215 remove this thing from the code 'the result is' then it works

    • @rohitchauhan7721
      @rohitchauhan7721 4 ปีที่แล้ว

      @@ajaybhandari9215
      x = int(input("Enter the number: "))
      print ('the result is',int(m.pow(x,3)))

  • @akshayp503
    @akshayp503 4 ปีที่แล้ว +1

    ur teaching way is awesome ... even a 10 year child cam understand clearly😍

  • @kilprab
    @kilprab 4 ปีที่แล้ว +4

    I have no programming background and I am glad I found your channel. Your way of explaining things is super helpful to me and highly motivating. Keep up the good work. Thank you Navin!

  • @anshul1047
    @anshul1047 4 ปีที่แล้ว +1

    from math import pow
    a= int(input('enter a number and i will give you its cube'))
    b= 3
    print(int(pow(a, b)))
    and this was another project i made
    y= int(input('enter an integer and i will give you its binary form, hexadecimal form and octal form'))
    print(bin(y))
    print(hex(y))
    print(oct(y))

  • @ayesharasool409
    @ayesharasool409 4 ปีที่แล้ว +6

    @telusko using command line
    import sys as s
    a=int(s.argv[1])**3
    print(a)
    Hence the output!:)

    • @manamalam4804
      @manamalam4804 3 ปีที่แล้ว

      Easy code 👍 ,
      I wrote a long code which is :
      def cube(x)
      return x*x*x
      n = int(input(“enter the number : “))
      Cube1 = cube(n)
      Print (“the cube of {0} = {1}”.format(n,cube1))

  • @Jawsjawsjawsrg
    @Jawsjawsjawsrg 7 หลายเดือนก่อน

    Thank you for this. I was training with the 100 days to code challenge and was stuck on a problem that I needed to solve, and this helped me to find the solution. Funny thing, I accidently hit submit before the test, and it worked.

  • @sravanbathini4137
    @sravanbathini4137 4 ปีที่แล้ว +6

    instead of converting the string type into integer you can directly take the input from the user in int type
    x = int(input("Enter the 1st number")
    y = int(input("Enter the 2nd number")
    z = x + y
    print(z)
    or return(z)

    • @Egg64Bits
      @Egg64Bits 3 ปีที่แล้ว +4

      didn't he already say that in the video

    • @bhakt9694
      @bhakt9694 2 ปีที่แล้ว +1

      Lol

  • @ashish7750
    @ashish7750 5 ปีที่แล้ว

    """
    x = input ('first')
    (1)
    y = input('second')
    (2)
    z = x + y
    print (z)
    return 12
    """
    x = int(input('first'))
    (1)
    y = int(input('second'))
    (2)
    z = x + y
    print (z)
    # return 3
    I just started the session and it like an addiction to learn. You are a champ. Sessions are so good & interactive.
    Thanks a lot.
    name='Navin Reddy'
    FeelingNow='nosire'
    print('thank you' ,name, FeelingNow[2:5])

  • @abhilashdevarakonda5991
    @abhilashdevarakonda5991 6 ปีที่แล้ว +72

    a= int(input('enter the value'))
    print(a**3)

  • @therealthinker9085
    @therealthinker9085 11 หลายเดือนก่อน

    Hello navin as for the quiz, this’s what I did and it worked
    1. d = int(input(“enter the number to be squared ”))
    2. f = d**3
    3. print(f)

  • @sharmak2746
    @sharmak2746 5 ปีที่แล้ว +13

    Hi Navin, i am following your videos of python and it's is simply amazing. iam done around 18 videso so far and going to complete the python series in one or two weeks. Do you have have some such similar Java videos as well...pls do share the links if there. Thanks a lot again.

  • @chethanreddydr
    @chethanreddydr 4 ปีที่แล้ว +1

    Reddy garu mee teaching mindblowing Anthe 👏👏

  • @mrlokeshkumar76
    @mrlokeshkumar76 3 ปีที่แล้ว +7

    no = int(input("enter the number"))
    print(no ** 3)
    on command line- import sys
    x = int(sys.argv[1])
    print(x ** 3)

    • @sajalgpt8
      @sajalgpt8 3 ปีที่แล้ว +1

      can we use print(math. pow(x,3) in both Pycharm as well as in the Command Line?

  • @asa24689
    @asa24689 3 ปีที่แล้ว

    I love your fun style of teaching, I am learning as well as enjoying.💕💕💕💕

  • @adityamore2616
    @adityamore2616 5 ปีที่แล้ว +8

    That last 'agrv' by importing from sys module is amazing :-)

  • @imPriyansh77
    @imPriyansh77 2 ปีที่แล้ว +1

    x = int(input("Enter a number :"))
    y = pow(x,3)
    print("value of cube is :", y)

  • @urvashigupta5813
    @urvashigupta5813 6 ปีที่แล้ว +8

    using input:
    import math
    x = int(input("Enter a no. "))
    cube = math.pow(x,3)
    cube

    • @kannant3847
      @kannant3847 3 ปีที่แล้ว

      this one is wrong

    • @azlanmahin46
      @azlanmahin46 3 ปีที่แล้ว

      @@kannant3847
      cube=int(input('enter number to find cube
      ='))
      print(int(cube**3))
      this works i think

  • @harshalkore149
    @harshalkore149 4 ปีที่แล้ว

    x=input("name:-")
    if x=="Navin Reddy":
    print("best teacher ever found")
    else:
    print("telusko is the best youtube channel for learning to code")
    .
    .
    .
    .
    Thank you sir......you are awesome!

  • @RiyasMohammed-ib9jy
    @RiyasMohammed-ib9jy 5 ปีที่แล้ว +10

    yas=int(input("enter my number"))
    X=yas ** 3
    Print(X)

  • @shalumov
    @shalumov 5 ปีที่แล้ว +2

    This is a great tutorial!!!! Thank you to the teacher!
    My version of the Homework:
    import sys
    import math
    if len(sys.argv) > 2:
    print("Too many arguments entered on command line")
    if len(sys.argv) == 2:
    a = int(sys.argv[1])
    print("The cube of", a, "is:", math.pow(a, 3))
    else:
    a = int(input("Enter a number: "))
    print("The cube of", a, "is:", a**3)

  • @mahidhardevisetty4581
    @mahidhardevisetty4581 4 ปีที่แล้ว +6

    a=int(input("enter a number"))**3
    Print(a)

    • @asim9432
      @asim9432 3 ปีที่แล้ว +3

      from math import pow
      x=int(input('Enter the Number'))
      y=pow(x,3)
      print(y)

  • @nidhikashyap5714
    @nidhikashyap5714 4 ปีที่แล้ว

    Amazing. I normally dont add comments on youtube videos. But the way you explain and teach is amazing. Thank you for all the learning you are imparting. Please keep up the good work. This channel for python is really helpful.

  • @freakmania2771
    @freakmania2771 5 ปีที่แล้ว +105

    Print(“you are best teacher your python love you 3000”)

    • @rajatrawat4284
      @rajatrawat4284 5 ปีที่แล้ว +42

      NameError: 'Print' is not defined
      😂
      'P' should be of lower case bro..!

    • @o-p-bgaming1274
      @o-p-bgaming1274 4 ปีที่แล้ว +1

      @@rajatrawat4284 😂

  • @ridhwangani9444
    @ridhwangani9444 3 ปีที่แล้ว +2

    I really had to pause the video and appreciate your teaching methods.

  • @akhileshchanda4828
    @akhileshchanda4828 5 ปีที่แล้ว +6

    import math
    a=int(input('enter a number'))
    b=math.pow(a,3)
    print(b)

    • @roopa6975
      @roopa6975 4 ปีที่แล้ว

      It should be
      a = float (input ("enter your number ")
      Right?

    • @akhileshchanda4828
      @akhileshchanda4828 4 ปีที่แล้ว +1

      @@roopa6975 yes u can but the input must be float

    • @roopa6975
      @roopa6975 4 ปีที่แล้ว

      @@akhileshchanda4828 my quest is if you define it as int, then what should be the output if you enter a float value like 2.3? It won't give you a result. But if you define it as float, the input can be integer or a floating value. It gives output for both.

  • @uttisreeharsha7425
    @uttisreeharsha7425 3 ปีที่แล้ว

    I have many doubts I'm started python course your video 🔥🔥🔥 completely understand 👍👍

  • @madhusudhanreddygone2667
    @madhusudhanreddygone2667 5 ปีที่แล้ว +25

    at 4:26 if this this not work i'll stop this video.... don't do that we're depending on your videos......if this tutorial is not understanding ...keep watching...
    :::))))

  • @jairaj9614
    @jairaj9614 4 ปีที่แล้ว +1

    Best channel for learning programming.😊

  • @amrutachawda47
    @amrutachawda47 4 ปีที่แล้ว +50

    I have done it using pow ..
    import math
    x= int(input("enter a number"))
    print(math.pow(x,3))

    • @johnsisofia3178
      @johnsisofia3178 4 ปีที่แล้ว

      x=int(input("Enter a number:"))
      print(pow(x,3))

    • @cabinetminister1220
      @cabinetminister1220 4 ปีที่แล้ว +4

      x=int(input("Enter Num"))
      print(x**3)
      *Without Function*

    • @vinayakkulkarni1303
      @vinayakkulkarni1303 4 ปีที่แล้ว +1

      @@cabinetminister1220 yes

    • @Amitkumar-wn4nl
      @Amitkumar-wn4nl 4 ปีที่แล้ว +5

      a=int(input("Enter number for cube"))
      c=a*a*a
      print(c)

    • @farooqueahmed1942
      @farooqueahmed1942 4 ปีที่แล้ว

      X = int(input("Enter a number"))
      from math import pow
      print(pow(X,3))

  • @shankargope2475
    @shankargope2475 ปีที่แล้ว

    Fantastic, due to the methods of your teaching I am really enjoying learning and practicing Python👌. Till before watching your videos I was feared of learning programming languages but not now. Thanks to your teaching💖

  • @bhumikalamba186
    @bhumikalamba186 6 ปีที่แล้ว +14

    The string point is very good. not many tutorials mention this

  • @mmka5434
    @mmka5434 5 ปีที่แล้ว

    Hello sir. Since your teaching method and knowledge is outstanding, I wanted to let you know that not only I am learning via your methodology and have already subscribed to your channel but I also suggested your tutorials to my brother. Your are an angel. Best regards.🙏🙏🙏

  • @Ganitacharya
    @Ganitacharya 4 ปีที่แล้ว +5

    x=int(input('Enter a number'))
    z=pow(x,3)
    print('The cube of'+" " +str(x)+" "+'is'+" "+str(z))

    • @ravichowdary9709
      @ravichowdary9709 4 ปีที่แล้ว

      Yeah it is working even we are not importing math function

  • @skkkks2321
    @skkkks2321 4 ปีที่แล้ว

    Another great efforts to get python in PyCharm,watching in Aug2020 and believe for Python this IDE is HOT HOT HOT...Well done job Mr Naveen

  • @srinivasmeesala2518
    @srinivasmeesala2518 4 ปีที่แล้ว +4

    s=int(input ("enter the value"))
    print (math.pow(4,3))

    • @suhailatar5025
      @suhailatar5025 3 ปีที่แล้ว

      correct the mistake: print (math.pow(s,3))

  • @navid8276
    @navid8276 4 ปีที่แล้ว +1

    Just started my journey with programming. Thank you so much for your content, I have learned so much!

  • @arjundev8090
    @arjundev8090 4 ปีที่แล้ว +10

    3:55
    Actually you could add int function before input function .. thats saves your time
    Like
    X=int(input("Enter 1st number"))
    Y=int(input("Enter 2nd Number"))
    Then you directly run the code and input the numbers and get the answers.
    And you don't have to add Another line of A & B and all..
    I hope this helps

    • @omkarjsuvarna
      @omkarjsuvarna 3 ปีที่แล้ว +1

      Yeah he actually mentioned that in this video.

    • @khaleel962
      @khaleel962 2 ปีที่แล้ว

      @@omkarjsuvarna i think he didn't watch the full video before commenting this ...

  • @adeyemiakanfe7641
    @adeyemiakanfe7641 ปีที่แล้ว

    This python video is still the best i have watched on youtube. kudos

  • @randolfkumbah7190
    @randolfkumbah7190 5 ปีที่แล้ว +8

    import math
    x = int(input("Enter To Get It Cube: "))
    y = int(input("The power of: "))
    cube = math.pow(x,y)
    print(cube)

    • @deepanshumishra4568
      @deepanshumishra4568 5 ปีที่แล้ว +2

      import sys
      x = int(sys.argv[1])
      print(x**3)

    • @rajmhatre20
      @rajmhatre20 4 ปีที่แล้ว +1

      Why y? Cube means to the power 3

  • @abhijitroy1958
    @abhijitroy1958 4 ปีที่แล้ว

    the you explain things even a kid will be able to understand its truly a beginners course , thank you so much sir

  • @vishvatrivedi6650
    @vishvatrivedi6650 5 ปีที่แล้ว +6

    1st method:
    x=int(input("Enter a number: ")
    y=x**3
    print(y)
    2nd method:
    from math import *
    x=float(input("Enter a number"))
    y=pow(x,3)
    print(y)

  • @shivanshpandey7239
    @shivanshpandey7239 3 ปีที่แล้ว +1

    x=int(input("enter a nmber"))
    y=pow(x,3)
    print(y)

  • @nuwanmadushanka8501
    @nuwanmadushanka8501 6 ปีที่แล้ว +13

    print("ThankYou :) ")

  • @gayatrimore3613
    @gayatrimore3613 3 ปีที่แล้ว +2

    thank u so much sir..sir we want lecturers like u in our college..sir i have seen many videos regarding python but i was not able to write any code for given program..one of my friend suggested me to learn python from your channel and it really helped me a lot..the way of ur teaching is really awesome..thanks sir once again

    • @ManuKumar-rf5gb
      @ManuKumar-rf5gb 3 ปีที่แล้ว +1

      name = input("what is your name?: ")
      age = int(input("how old are you?: "))
      age = age + 1
      print("Hello "+name)
      print("you are "+str(age)+" years old") why here give str plz explain

    • @uday2159
      @uday2159 2 ปีที่แล้ว +2

      @@ManuKumar-rf5gb int type we cannot concatenate with str, so you need to change data type into str and concatenate with + 🙂

    • @ManuKumar-rf5gb
      @ManuKumar-rf5gb 2 ปีที่แล้ว

      @@uday2159 tq 😊

  • @pavanmudhole2065
    @pavanmudhole2065 5 ปีที่แล้ว +14

    from sys import argv
    x=int(argv[1])
    y=x**3
    print(y)

  • @2MUCHgut
    @2MUCHgut 3 ปีที่แล้ว +1

    Great work sir, we are very blessed to have a teacher like you, thank u so much

  • @ManoharNaidu-u2c
    @ManoharNaidu-u2c 4 หลายเดือนก่อน +8

    who watching this tutorial from 2024

  • @horror4097
    @horror4097 4 ปีที่แล้ว

    Sir, your video is helping me a lot ...I will be watching all your videos on python and much more....thank you...

  • @shilpananda6335
    @shilpananda6335 5 ปีที่แล้ว +19

    Can you teach some other recent topics like machine learning

  • @amitjangid1197
    @amitjangid1197 2 ปีที่แล้ว +1

    sir i do it the assignment i really happy with this😀

  • @himelroy7941
    @himelroy7941 5 ปีที่แล้ว +4

    print("just love it")

  • @sahiljain3083
    @sahiljain3083 4 ปีที่แล้ว

    sticking to this channel for coding knowledge...awesome teacher

  • @SantoshSahu-nd1bw
    @SantoshSahu-nd1bw 6 ปีที่แล้ว +10

    using input: -
    print(int(input("Enter no to find cube: "))**3)
    using the command line:-
    import sys
    print((int(sys.argv[1]))**3)

  • @sohamsen7892
    @sohamsen7892 4 ปีที่แล้ว

    Ever since I started working almost three years ago, I felt my passion for programming started dying because in one's job programming is not really done the way we all want to, you generally need to copy paste your code without applying any thinking to it which makes this boring. The very passion which made opt for software development was dying until I found out Navin sir's playlist. My curiosity and passion is back. This is oxygen.

  • @mdmakadia6904
    @mdmakadia6904 4 ปีที่แล้ว +4

    0:07 I like this moment too much

  • @praneethkumar898
    @praneethkumar898 11 หลายเดือนก่อน +1

    import math
    x= int(input("enter the number"))
    a=math.pow(x,3)
    b=print(a)

  • @milanbariya4914
    @milanbariya4914 4 ปีที่แล้ว +3

    🤓 Quiz Answer 🤓
    Take the input from the user using input () and also using command line.
    Answer:
    1) Using input method
    number = int (input ("Enter any number :"))
    Print (number)
    2) Using command line
    Import sys
    number = int( sys.argv[1] )
    print ( number )

  • @sthuthigeethachilukuri4489
    @sthuthigeethachilukuri4489 3 ปีที่แล้ว

    Ur explanation way is super sir....im understanding very easily

  • @milanbariya4914
    @milanbariya4914 4 ปีที่แล้ว +4

    🤓 Quiz Answer 🤓
    1) Write a code to find the cube of number
    Answer:
    number = int(input ("Please enter a number to find cube"))
    Print (number**3).

    • @harisrashid0773
      @harisrashid0773 4 ปีที่แล้ว +1

      Where can I find quiz questions that he mentioned

    • @milanbariya4914
      @milanbariya4914 4 ปีที่แล้ว

      @@harisrashid0773 At the end of video.

  • @Anchor_Nikita
    @Anchor_Nikita ปีที่แล้ว

    you are so good at explaining , not irritating like others

  • @sathishkumars2380
    @sathishkumars2380 4 ปีที่แล้ว +4

    Hey Navin, thank you so much for the sessions !!!
    I do have a doubt. Can't we use argv function in PyCharm IDE ?

  • @ishanbhardwaj9471
    @ishanbhardwaj9471 3 ปีที่แล้ว +1

    Bro salute to you and your team . Great work. Big thanks.

  • @kirubakaran9278
    @kirubakaran9278 4 ปีที่แล้ว +1

    Fantastic teaching

  • @adilakshmikaviti9002
    @adilakshmikaviti9002 3 ปีที่แล้ว

    I think in this world this is the best tutorial for python😊

  • @DanMcHugh
    @DanMcHugh 2 ปีที่แล้ว

    This man is truly an amazing teacher.

  • @balajisaravanan1
    @balajisaravanan1 4 ปีที่แล้ว

    Man, what a great video. The way you are teaching the concept is too good. Explaining each and every step. Thank you for the wonderful video.

  • @vivekjha9952
    @vivekjha9952 5 ปีที่แล้ว

    Excellent coach who makes people learning easy and interest towards course without any BREAK. Proud and Pls help in giving more videos or explain us other technologies too in the same way like Python...Ex:Hadoop,Spark,Hive,BigData,ShellScripting etc etc...

  • @parthvats4209
    @parthvats4209 5 ปีที่แล้ว +2

    sir the homework is
    in pycharm
    x=int(input("enter the number - "))
    z = x **3
    print ("the cube of ", x ,'is ', z)
    hope it is correct
    you are the best teacher

  • @explorewithmanik9874
    @explorewithmanik9874 5 ปีที่แล้ว

    Import math
    A=int(input("enter a number"))
    B=math.pow(A,3)
    print(B)
    Tq sir👍👍

  • @dsingh16
    @dsingh16 4 ปีที่แล้ว

    the best way to get in understand . its really very helpful with each and every detail -