At 1:50, you should say you *declare* the type, not "cast" it. Typecasting is something else.
@Ownage4lif315 жыл бұрын
marian519 yea I was confused about this too lol
@DukeBG5 жыл бұрын
agreed, it's not very helpful to use terms that have some loaded meaning in this area even though they might seem like synonyms.
@joeeyaura5 жыл бұрын
i cringed a little at that too
@dummypg61295 жыл бұрын
Typecast from undefined?
@AlexGorskov5 жыл бұрын
@@DukeBG Hey man, does your nickname come from a late 80s game ZELIARD?
@Waffle45695 жыл бұрын
You can use "var" in C# to avoid explicitly declaring the type. Also, you can use "dynamic" for variables that change type.
@Phoenix-ip5kg4 жыл бұрын
For me... Python: is good for learning coding as a beginner C#: good for actually coding
@DaniloSilva-pl3sq4 жыл бұрын
So why is Python widely considered the best language for Machine Leaning, Deep Learning and Data Science?
@DaniloSilva-pl3sq4 жыл бұрын
Not to mention back-end web development with frameworks such as Django and Flask
@Phoenix-ip5kg4 жыл бұрын
@@DaniloSilva-pl3sq that was 3 months ago. Now i think about it differently. C# is good for gaming (which was my field) but python is good for the purposes you’ve mentioned.
@CoachVicTheLandInvestor4 жыл бұрын
@@DaniloSilva-pl3sq because data scientist can focus on the algorithms and not the code. they also arent writing code for production purposes, but to train models and collect data. When its time to code an actual app or program that uses said models, then most dont use python, they switch to a more performant language like C++.
@c_ornato4 жыл бұрын
@@Phoenix-ip5kg godot also exists
@TammonOG5 жыл бұрын
Python is my favourite language rn, I just don't like how when I accidentally add an extra space everything stops working and it's usually difficult to find
@qwerty9753115 жыл бұрын
I have had the same thing happen to me especially when copying and pasting code I was testing in idle.
@thekumamedia5 жыл бұрын
Keep in mind that C is a faster language for your computer to process
@mcrazy20805 жыл бұрын
@@thekumamedia But python is way faster for me to implement anything. It's for testing out your ideas and it's fast enough most of the time. Today's computers are fast enough for python, unless you are doing many iterations or system programming.
@QuantumFluxable5 жыл бұрын
I prefer everything that's got explicit variable declarations. it's clearer in terms of what parameters to give to a function. if i'm hacking together something quick in python and come back to it a month later i may have to check the correct way to pass params to that old function before i do anything with it, this is all "automatically" taken care of in something like C#, essentially forcing me to document my params at least a little bit
@its.arjun.s5 жыл бұрын
@@thekumamedia what about golang
@djpeterson74795 жыл бұрын
Bear in mind that specifying the type of the variable in C# exists for a reason. It's there so that both the compiler and the code writer understand a variable is being declared and used. This comes in handy for catching bugs as a typo will cause your code to not compile. As opposed to Python, a typo will simply create a new variable and you'll have a logic error (typically harder to debug) instead of a compile time error. I'm writing my own scripting language and ended up switching from Python to C# style for this very reason. As a quick aside, in C#, you don't need to always specify the type when declaring a variable. If you are declaring and initializing, you can use `var` and the type of the variable will become the type of the expression. I'm excited to learn Python because of how terse it is, but honestly it represents a lot of the things I've been trying to run away from: non-strict variable declaration, dynamic type systems and a focus on mutability. After over a decade of experience, I find these things to be more of a hindrance than a benefit especially as your code base grows.
@vivaleute51412 жыл бұрын
@Shahar Erez you're talking nonesense
@vivaleute51412 жыл бұрын
@Shahar Erez It wasn't trolling. Man, do you know about architecture and prediction? When you're writting some code, you need to understand for which purpose and trying to predict what it will be in future. So it sounds weird to me, that it's much easier to use language without strongly typing. It means that you don't understand what you're writting.
@zeppelin01105 жыл бұрын
These 2 are my favorite programming languages, but I have to say, I think C# is the 'better' one. Yes, I know they are different and they are used differently (e.g. Python is more used by data scientists while C# is more popular in a business environment) - but I think C# is more modern and advanced. I will give just 1 example to prove this - Linq. While Python has list comprehensions and lambdas, and they certainly are powerful, they are nowhere as elegant and convenient as Linq. All that said, I do like both languages a lot, but have a slight preference for C#.
@omairtech67115 жыл бұрын
What about Java? Should I learn Java first, before I learn C# or Python?
@QuantumFluxable5 жыл бұрын
@@omairtech6711 unless you want to program android apps specifically I would steer way clear off Java. C# is a lot like Java but more powerful, more commonly used (again, except for android of course), less cumbersome, more performant and you can even program games in it (using Unity). The only successful PC game using Java that I know of is Minecraft, and that has constant issues with memory leaks and stuttering due to Java garbage collection. I'm not a big fan of Python either but it's still a better choice than Java. Feel free to ask if you got further questions :)
@omairtech67115 жыл бұрын
@@QuantumFluxable Thank you! I have already started learning Java. Should I switch to C#? Or should I finish learning Java? I am coming back to coding. I used to program in Delphi. Later I used Microsft VisualBasic.Net. I haven't coded in years. Started relearning just a few days ago.
@QuantumFluxable5 жыл бұрын
@@omairtech6711 I suppose that depends on how far you got into Java already, but I've learned a lot of languages over the years and eventually realized that one can never "learn" a programming language fully, it's more like a tool: I'm sure you know how to use a hammer, but can you use it as well as a carpenter or a smith? probably not, but that doesn't mean you should never pick up a hammer, it just means you could be more efficient with it. Programming languages are the same, once you got the basic concepts you can use them to do all sorts of things, and while you do that you continue learning the tiny details and become better at using the language, but you never finish learning it. That's a super long way of saying "it doesn't matter as much what language you learn". C#, when first introduced, was being advertised as a Java that isn't Java. Basic syntax between the two is very similar, so it shouldn't be a problem for you to switch if you want to do that, especially since you used to program in Delphi.
@QuantumFluxable5 жыл бұрын
@Memento Mori Well, that completely depends on what you want to do with your startup. If your startup is gonna produce Android apps, it's Java. Electronics? You better hire a C programmer for microcontrollers if that's relevant. Websites? Ruby on Rails. And so on...
@ClarenceSimukanzye4 жыл бұрын
well, C# is power!
@unlxck32553 жыл бұрын
@Glizzster 多 Type Console.ReadKey(); instead of ReadLine so you can just press any Key you want and it closes.
@theindianyouwatch3 жыл бұрын
@Glizzster Console.WriteLine("bruv you indian?"); Console.ReadLine;
@redcrafterlppa3033 жыл бұрын
He just described everything I hate about python and love about everything else.
@SVVV975 жыл бұрын
First off: big fan; but there are some mistakes: The types are declared not cast Python doesn't need to declare variable types but not because it's Interpreted but because of it's type system which is dynamically & implicitly typed (while still being strongly typed I think?); Whereas C# usually is statically, weakly and explicitly typed (with Support for dynamic typing and type inference(recommended by MS)) If there are errors in this please correct me :D
@SVVV975 жыл бұрын
Also C# has a model that's similar to (c)python's: compile to bytecode or some IR and then be interpreted by a VM (where C# then is JIT compiled) afaik
@gernottiefenbrunner1725 жыл бұрын
I'm pretty sure c# is strongly typed too (except if you use pointers). At least, I haven't yet stumbled over a scenario where you can accidentally access memory as the wrong type
@HaloWolf1024 жыл бұрын
I'm going to leave here, if you don't mind. If anyone wants to clear the output, type 'Ctrl + Shift + P'. It will pull up a window, then type 'Clear Output'. I searched for this problem, but didn't find an answer. Thankfully someone said to do it with the terminal, so I guessed if I used output instead, it would work. Also, save your code before you run it, otherwise it will run a previous save of the code. Or if you didn't save it at all, it won't run. At least that's what happened in my case.
@PlutoisaPlanet4 жыл бұрын
The guy who made this video has no clue about C# lol. He doesn’t realize all the other uses of C#, .NET’s great documentation, plus the consistent and great functionality included out of the box. The only thing he talked about was syntax. Lol.
@zzedixx4 жыл бұрын
@@PlutoisaPlanet he's a pro at c#, since it's the language used in unity and he's a unity god
@ironfoot19384 жыл бұрын
c#: [var] : am i a joke to you?!?
@wendten24 жыл бұрын
[dynamic]: hello mere mortal
@FurryDanOriginal4 жыл бұрын
I'm not an expert and also no native speaker, nor very informed with the general programming terminology, so if there's anything you think is wrong, feel free to correct me. In fact I don't know most of the stuff but am making educational guesses instead based on how the discussed points in this video make sense to me. In C#, the reason why you have to give a variable a type and can't change its value to a value of another type is not necessarily bad (and not there because the language can't figure it out by itself, in fact there are ways it can which I will point out later) but rather a design choice. When declaring a variable as one type it barely ever makes sense to give it later on a value of another since one variable should always represent one specific "idea". And almost all of the time that one won't change its type since it's bound to it. If you want C# to figure out the type by itself you can just always use the "var" keyword which will make the variable of the type of the value that you're assigning it to. The only times you can't do that, as far as I know, are when you're just declaring a variable but not initializing it, or you're giving a non-struct object it's default value "null" since that could be valid for any reference type and couldn't be figured out just by the value a variable is being assigned to. If you want to use a dynamic type meaning it can change its value type afterwards, even though that has very limited practical uses with the main disadvantage being that the compiler has no clue on what type it is and therefore what fields, properties and functions it contains, just use the keyword "dynamic". That being said, I absolutely do love python for its syntax of not having to resort to semicolons and espacially curly braces. Since you want to format your code to be readable anyways, in my opinion it absolutely makes sense to merge the syntax and indentation into one to avoid much visual noise.
@lucaswalker69193 жыл бұрын
In my opinion it makes the code easier to read to have the curly braces and semicolons. Idk, I guess my mind just processes it wierdly.
@ThatGuyDownInThe5 жыл бұрын
these are the exact two languages I want to learn, how exciting
@ravencodm70094 жыл бұрын
Saaaaame
@audiohacker52984 жыл бұрын
@@ravencodm7009 Same lmao
@Imperial_Dynamics5 жыл бұрын
nice video. Personally I prefer C#, it is strongly-typed meaning far easier to find errors while you are writing the code. With Python runtime errors are a nightmare
@vxsniffer5 жыл бұрын
you are wrong, Python is strongly typed too... Python is dynamically typed and C# is statically typed and that's true difference... it's good to understand some terms before you start to complain... frankly, from your post, I doubt you did anything serious in Python, hence best way to get rid of "nightmares" is to wake up ;-)
@jeromep52945 жыл бұрын
@@vxsniffer pretty petty, are you? He's not wrong, though, just did not get the right term. I know both languages and this is one of the reasons I personally prefer C# or any statically-typed language, respectively.
@vxsniffer5 жыл бұрын
@@jeromep5294 - there is all about terms, syntax, remember? statically and strongly are different ideas, hence my comment.
@QuantumFluxable5 жыл бұрын
@@vxsniffer "it's good to understand some terms before you start to complain" just makes you seem like a condescending asshole though. doesn't matter if they used the wrong terms, the opinion of Imperial Dynamics still shows they understood the concepts.
@vxsniffer5 жыл бұрын
@@QuantumFluxable - why so touchy, better think of those misled by author messing basic terms...
@stonefreak57634 жыл бұрын
5:25 you can use the datatype: var -> variable, in c++ it is auto.
@znchrzr5 жыл бұрын
i really love how he makes his videos like the "SYNTAX" part. Although it is simple for many, I'd like to learn how he does his videos.
@pylewastaken4 жыл бұрын
I think c# is a lot easier since I get less bugs than python
@theheroofthevirgins14874 жыл бұрын
True xD
@wewe-fx6un4 жыл бұрын
In that case, you don't know how to code.
@ReactJSX4 жыл бұрын
@@wewe-fx6un if you don't make mistakes whilst coding, you've obviously never touched an IDE before.
@wewe-fx6un4 жыл бұрын
@@ReactJSX I use vim. Any problem?
@ReactJSX4 жыл бұрын
@@wewe-fx6un if you don't make mistakes whilst coding, you've obviously never touched an IDE before.
@talwat3213 жыл бұрын
If your thinking which one to learn, take a minute to reflect on what you want to do with code. Wanna make games? C#. Wanna make bots? Python. They are good for different things. If you have enough time, then try to learn both. Learning another language usually cant hurt :)
@wilmararias20834 жыл бұрын
For big projects I choose c# every single the day. C# makes the code consistent and give you more control The chance to build stable secure apps is bigger. Python in the other hand has more focus on the business logic o ('human logic') Wich is great when you are dealing with data science you don't want to mess with data types you write spaghetti code that just work you don't need the same control , but if you work with huge projects this can easy get annoying and hard to work so I only use python where I need fast development without the need of that kind of code control.
@foxrumor5 жыл бұрын
Great tutorial. I'd love this to be a whole series. Learning python and c# at the same time.
@foxrumor5 жыл бұрын
Nvm, I just noticed it is a whole series and I'm dumb. Thanks Jabrils!
@Jabrils5 жыл бұрын
;)
@SecurityCraftsman4 жыл бұрын
Really thought you did a great job outlining the syntax. Plus seeing the side by side comparison drives the point home nicely.
@iLinked4 жыл бұрын
i think it's pretty easy to see which language jabrils uses on a day-to-day basis
@Foxfried2 жыл бұрын
Coders that use python are like people who never learn to ride a bike without the training wheels.
@tinym00n5 жыл бұрын
I don't want to be that guy but have you heard of dynamics in c#.
@scarletdcruz78435 жыл бұрын
What do you mean?
@iLinked4 жыл бұрын
i was thinking about that as well lmao
@benotyourboss4 жыл бұрын
I am using a macbook and try to follow along, when I hit save before play then the following message appears in my VS Code window in the bottom right corner: Linter pylint is not installed. - however when I try to install it then the following appears: There is no Pip installer available in the selected environment. - what does this mean and how do i get ridde of this issue?
@IgorDz5 жыл бұрын
Dude! Wow! A sincere print('thank you!') for doing this! My motivation is back on track!
@scarletdcruz78435 жыл бұрын
I'm old school. So.. print 'thank you!'
@multilangcoder87233 жыл бұрын
Console.WriteLine("Thank you!");
@delicioushomemadestrawberr87303 жыл бұрын
I learned C# in school to make videogames through Unity and now that I have entered university I'm going to be taught python which feels like a simpler version of C# to me. I don't know why it's this way but it is what it is
@codezone13510 ай бұрын
😅
@brandonda81655 жыл бұрын
I have installed windows studio code. I am running python and code runner. Whenever I hit the play button I get back 'python' is not recognized as an internal or external command, operable program or batch file. what do I do??
@thekumamedia5 жыл бұрын
You have to install python into your computer.
@thekumamedia5 жыл бұрын
Brandon Da here brother, kzbin.info/www/bejne/momVXolod9SWp7M I hope this helps.
@brandondemeris87065 жыл бұрын
I love ur videos man, going to school for mechanical engineering and computing technology. U make spending all my time watching yt videos feel productive XD
@abboss.b99355 жыл бұрын
5:40 use "dynamic" for dynamic types
@HaloWolf1024 жыл бұрын
Thanks for the timestamp, I read criticism from other coders, and I couldn't seem to 'find' what they were talking about.
@r1pfake5214 жыл бұрын
Yes it's possible but you shouldn't use it for "normal" code, dynamic was made for special cases like COM APIs etc
@weirdwordcombo5 жыл бұрын
In C# i would replace bool and int with var. Essentially the compiler will still complain when you use the variable in invalid places, so type checking is still done in this case.
@KEMBL5 жыл бұрын
6:42 "seam eye colon" that is great ;)
@barryjohnson43405 жыл бұрын
Thank you for this video. I have been out of programming for a while and this has helped me quite a bit.
@ArivanAshstar5 жыл бұрын
This is really good for helping people who got taught python, how to move to C#
@jeffreyhicks63804 жыл бұрын
I've only been programming for a few months, but these two languages are my favorite.
@SCTproductionsJ5Ай бұрын
3:44 that's a benefit of loosely typed languages rather than interpreted languages. Even a lot of interpreted languages are strongly typed. i.e. Java and even C# (both of which allow you to compile beforehand now)
@1166NYC4 жыл бұрын
I only use Python so this video was very informative for me to see what C+ is like! Your videos are super dope and I've liked them since before I got into data science. I'm looking forward to your next video
@shubbyshabaas3 жыл бұрын
It’s C#
@thefront58712 жыл бұрын
Yeah Umm having loosely typed variables can be a HUGE problem when it comes to introducing bugs into your program while also introducing hard to debug errors and unwanted behaviors! It's like we haven't learned anything in these last 30+ years! It's like Javascript in a way! Thanks, but I'll stick with the easily debuggable, maintainable, and predictable behavior code of C#!!
@theheroofthevirgins14874 жыл бұрын
I started with python with no code experience did it for 5 month I was hype but slowly started not liking it I build some simple games like hang man and guess my number everyone say start with python it easy to understand they right about that but the reason I wanted to start coding to build games so my friend brother told me why not try C# and use unity with it to build games he also told me is best to try other languages u might like them better he was right I started using c# idk why I found it more easy to use then python. If you are a person who want to make game I strongly suggest like the guy in the video say use c# to make games I been using C# now for a month and learn a bit but love this language more then python :) also grate video sorry for the long comment I just want to let people know if you are not enjoying a language try different one u never know u might find other languages much easier and also like the guy in video say some languages are use for different stuff grate video mate
@lifeform1064 жыл бұрын
I’m in the exact same position. Everyone told me to learn python first for beginners. I used python for 3 months making simple games like dodging blocks, sprite walk test, and space invaders. But I was disappointed how slow python in running bigger games I wanted to make, the errors are so hard to find, and many python jobs are in data science which I’m personally not interested in. I started learning JavaScript, CSS, and HTML for web development and starting C# and unity and it runs so smooth and well and can do way bigger projects. I think python is good for beginners and people interested in data science, but C# is where it’s at for game development
@noterenyega91584 жыл бұрын
I don't know about u guys, but I like both languages. There is a olynpiad thing going on in my school so that's why I'm learning Python first. I want to learn both and be able to make some cool games on Godot Engine :D
@HeilerKGD4 жыл бұрын
im in a similar case :D i started learning with HTML,CSS,Java ( with m1m0 app) and got interested in gameprogramming, i tryed unity , unreal and godot and fall toadally in love with godot.... but now the big question .... shoud i learn C# or python ( godot use Gdscript also an version of python, and at the moment i make one month scool course for C# ... but STILL i dont can choose like i have all time, an hard time when i shoud choose) ... python i like a bit more at the moment but i dont like it when i have really long loading or complicated games when it work better with C#
@BlackMandragore5 жыл бұрын
With the use of dynamic feature (C# 4.0) you can write doit = true; and then doit = 1234; I have implemented such an object and I'm able to write the following: var doit = new DynamicStruct(); // DynamicStruct is my implementation (~150 lines of code) that uses dynamic feature introduced in C# 4.0 doit = true; doit = false; doit.whatever = 1234; // no need to declare "whatever", just write the assignation, it will be created on the fly doit.whatever.anotherVariable = new List(); doit.a_new_var_when_I_want = doit.whatever; When looking at comparisons between C# and Python over the Internet, because they are not made thoroughly, all of them are pretty much the same incomplete and deceptive consensus.
@iRogerRomero4 жыл бұрын
Wish I found this 10 years earlier but it’s never too late
@lubaka82695 жыл бұрын
Great video, but for the love of God, CW + Double Tab to write Console.Writeline!
@lolbot23125 жыл бұрын
Thank you for the tip i did not know you could do that
@frozenprakash3 жыл бұрын
@@lolbot2312 There are a lot of code snippets, which just makes C# so much fun ;)
@karolg6314 жыл бұрын
You could use : var something = true; var something1 = 1337; var something2 = new List(); also if that's not enough for you and you want to feel the snake language even more, you can play with the "dynamic" in C# :)
@HaloWolf1025 жыл бұрын
From age 16-18, I've tried learning C++ through Udemy, whatever from Khan Academy, and whatever from Arduino. I failed all of them, yes even the kid learning one. In each instance I've failed to correctly understand if statements, but now I do. I thought whatever was in the if statement, was opposite of what it needs to run, example. **** //Correct bool doit = true; if (doit) //In order for this to run, you need doit to equal true. { doit = false; } **** But when I tried it the opposite way **** // Incorrect bool doit = false; if (doit) //In order for this to run, you need doit to equal false. { doit = true; } **** But now I realize, when I'm almost 21, 5 years later, that for an if statement to work, it always needs it to be true, and not the opposite of what it contains, at least in a boolean sense.
@mastershooter644 жыл бұрын
pfft.. you guys use high-level languages? what are you 3 years old? real men use machine language
@sudoShiba4 жыл бұрын
Depends what you use your code for
@mastershooter644 жыл бұрын
@@sudoShiba yea it does, but that was a joke
@hamhampangpang_customer4 жыл бұрын
use magnet
@hgbtheman4 жыл бұрын
real men simply become computers and become the code
@Tokagawa894 жыл бұрын
Real men code in Binary and become machines.
@PythonPlusPlus5 жыл бұрын
I like python, because it’s quick to get applications running. However for large projects where you may be working in a team,or needs to be maintained, you should use c#. The strong typing prevents bugs from forming and helps greatly for self documenting code.
@techslugz4 жыл бұрын
See at about 16:44 with the int a variable = 5 and = 0 on both C# and Python windows in the if statement.. as the variable is last changed to zero, if you were to print(a)/Console.WriteLine(a) would a have the value 5 or 0? Because it is changed in the if statement, would it revert to its original declared value outside of that if statement code block? Or would it stay as what it is changed to within the if statement code block? I feel like it will be 0 but Im not too sure so if anyone knows the answer itd be appreciated :-) cheers in advance.
@Jabrils4 жыл бұрын
the variable is only last changed to 0 IF doit = True. if doit = False, then that entire code block is ignored, its like it never existed, thus, a = 5 still.
@Birdmanondaweb5 жыл бұрын
'python' is not recognized as an internal or external command, operable program or batch file. This is what I get when I do the print(doit) command just like you did with the doit = True set up just the same. I reinstalled it, ran the language as Python, and the interpreter as Python, and still it won't work. I'm not sure what I'm doing wrong.
@BiancaAguglia5 жыл бұрын
Do you know if Python was added to the PATH when you downloaded it? If not, you have to manually add it. Or you can uninstall Python and re-download it, but make sure you check the "Add Python 3.7 to PATH' button. I believe it's on the first screen you see when you start installing Python. Good luck! 😊
@GeorgeRRFloyd5 жыл бұрын
I had this problem too: first go to windows search bar and search "path", click "edit the system environment variables", on the pop-up click "environment variables", on the new pop-up find "Path" on the list, select it and click edit, click "new" and paste the path of Python (mine was C:\Users\[YOURUSERNAME]\AppData\Local\Programs\Python\Python37-32). Then just restart computer and it should work.
@HaloWolf1025 жыл бұрын
@@GeorgeRRFloyd I tried this, doesn't work. My terminal keeps abruptly shutting off and gives me the error 'The terminal process command 'C:\Windows\system32\cmd.exe' failed to launch (exit code: {2})'
@BagziMan4 жыл бұрын
c# + Unity =is reason why i use it 😍
@vxsniffer4 жыл бұрын
actually you can use semicolons in Python as well... below example of working code: if True: a = 1; b = 2; c = 3 print(a, b, c) ...but nobody code this way (maybe except former C# devs) as lowering readability
@vangelis.gavalakis3 жыл бұрын
The fact that python does not have brackets and relies on spacing and lines just makes me angry.
@Jabrils3 жыл бұрын
You get used to it
@splatbot80915 жыл бұрын
Why make these videos unlisted?
@styxnstones985 жыл бұрын
That way people who are not interested aren't spammed on there recommend and doesn't clog up his video archive
@godlyvex55435 жыл бұрын
The video was just uploaded today
@lucaswalker69193 жыл бұрын
C# in my opinion is easier to code with as it's more structured and less concise, so you can actually tell what types variables are and what functions do.
@pyraxus5 жыл бұрын
Jabrils, your truly great, especially for spending your time on teaching us bool thank you = true;
@iLinked4 жыл бұрын
yikes
@cipherxen23 жыл бұрын
Unexpected token 'you'
@xxgn3 жыл бұрын
In C#9, the below is a legal program (i.e., no need for a class declaration or a main function): System.Console.WriteLine ("Hello, world");
@itsslugg36373 жыл бұрын
I was blown away by the content, went to subscribe and was even more blown away not to see you eating food on screeen!!!
@timochyfilix51763 жыл бұрын
have you mentioned that compiled language is faster and more robust for error detection?
@username-km5vs4 жыл бұрын
Should I learn python or c# first
@RandomComputing5 жыл бұрын
In python at 15:50, if the "doit" was True, the variable will be able to print out of scope
@abhishekrawat75905 жыл бұрын
@FirstWeCode In Python, scopes are defined by Function and Methods, as opposed to the Curly Braces in C# This is even clearer in C++.
@abhishekrawat75905 жыл бұрын
@Christobanistan Python also has the same thing, and is defined by Indentations.
@abhishekrawat75905 жыл бұрын
@Christobanistan kinda, but you can say it declaration, cuz you can't operate with them directly, without any early mentions
@thelegendofme75205 жыл бұрын
When I tried doing the boolean on python i just kept getting "'python' is not recognized as an internal or external command, operable program or batch file." Can someone please help me
@Sisyphus_24685 жыл бұрын
Well it works for me, whay I.D.E. are you using? Maybe it just doesnt recognize that you are using python
@supremebohnenstange41025 жыл бұрын
As someone who only knows Java I like c# way better, python just makes me really uncomfortable
@DitzelGames4 жыл бұрын
c# is basicly a microsoft ripoff of java
@mantis71224 жыл бұрын
@@DitzelGames more like java but more powerful lol
@ppogd97953 жыл бұрын
@@DitzelGames No it is not
@ppogd97953 жыл бұрын
C# is easier then python
@liambrem2235 жыл бұрын
Thank you so much for creating the tutorial vids!
@dxsaigon4 жыл бұрын
This was such a clear tutorial! Thank you!
@IthilElf5 жыл бұрын
I love the way you explain things. You're very easy to follow ^^
@buddyroach4 жыл бұрын
so how does python handle memory when not setting dimensions for them variable and then assigning a variable of one type to another?
@PkmnLovr13 жыл бұрын
Was Python 3.6 the latest version of Python available in 2019? And how can I transfer this knowledge to the later versions of Python? I have Python 3.8 and Python 3.10 downloaded on my computer. Should I even try to transfer this knowledge to the later versions of Python? 3.6 looks and behaves differently than the Python versions that I have downloaded.
@WashingtonFernandes4 жыл бұрын
16:16 you can use: if doit: global a a = 0 .... and use the a on anywhere of your code
@jamesforster21942 жыл бұрын
Nice video! Hope you don't mind me saying that there's a couple things here that are not quite right though. Static typing in C# (i.e bool something = true) isn't the same as casting. Casting is where you implicitly or explicitly cast one data type into a different one (i.e something.ToString()). An "interpreted language" (like Python is) does refer to the fact that it "interprets" variable types. Instead, this behaviour means that Python is a dynamically typed language, rather than a statically typed language like C#. Static typing means that if string value = "Something", the variable "value" must now always contain a string. In Python, I don't think you can set types explicitly, and variables can contain whatever you want them to! Crazy town! An interpreted language is one that has no "build" step, like C#. Instead, a separate program called an interpreter will execute the code. C# is compiled into machine code and executed directly by the processor.
@DeepakKumar-uz4xy5 жыл бұрын
Man you are one of the best tutor or teacher. I have ever seen so far. Can u make tutorials on data science tutorials I don't know you have time or not. But I want to learn from your channel
@valarmorghulis40513 жыл бұрын
which ide is he using in video for python
@DevlogBill2 жыл бұрын
REQUEST: Please, could you create another video of a comparison between another 2 languages? Maybe JavaScript and whatever language you like to choose?
@Po1aris1005 жыл бұрын
I don’t know much about C#, but I do know that in python every block of code doesn’t have its own scope. Scopes are defined for the Module, Classes and Functions. An if, while, for, with, try...etc block can initialize a variable assuming that block is evaluated.
@NickTheHunter4 жыл бұрын
15:00 - the “a” variable was not declared because your “doit” variable is assigned to be false, I guess. Is not this the only reason for the error?!
@crucifixxx49604 жыл бұрын
That's true, but it will show the error anyway. The variable can't be used because its inside the block, which the code technically can't "read" outside the block. If you specifically set the variable to global then it would work.
@watercat12484 жыл бұрын
I need to find i software developer in discortd I'm game developer in unity but I have started to try to make applications in visual studio the window mode the problem is I don't know wean to find i comunity with sftwear developer I allredy have made all the base layout for the applecation but all this ui does nathing can enyone know haw to find comunity with sftwear developers ? Even if wach tourials I still need to find software development comunity in the order I to ask questions meny people the do tourials the don't answer the questions this way I want to finding I comunity
@darshmostafa60443 жыл бұрын
I am a Beginner and i want to learn web what's the best (Php Laraval 8 or python Django or Java spring or C# . Net Core5),.....
@rpcragesh4 жыл бұрын
I feel c# is very much richer in syntax. And the python is how kids are writing something on pre school. Why people are behind dat .c# and dotnet provide much more advanced out of box features already.
@celine75744 жыл бұрын
Wow you really do not know. Python is just a really efficient way to code. No time wasted!
@Thruster865 жыл бұрын
Just for some feedback, I feel like it would be helpful to make a video before this in the playlist that goes over some of the programming terms used in this video.
@starisma42155 жыл бұрын
Those terms are in the playlist that's in the description.
@moyk35175 жыл бұрын
Why does it show the wrong number in the output if I change the variables. (For example, i changed the a = 5 in the video into a = 7 and it still showed 5). I can fix this by debugging but do I really need to do that every time? newbie here.
@thekumamedia5 жыл бұрын
Moyk Sus102 it sounds to me like u did not save the file before running the code.
@curtisbell28724 жыл бұрын
That was extremely clear and helpful!
@clemens52955 жыл бұрын
maybe i misunderstood but as far as i know you can actually initialise a variable in one code block and read it /set a new value in another.. it just didn't work because doit was False, the if condition therefore wasn't met and the variable wasn't actually initialised.
@ZeroSleap4 жыл бұрын
11:51 Fun shortcut on Visual studio for console writeline is cw and press tab to autocomplete
@daedricknightt92194 жыл бұрын
Thanks very much. Very informative
@RobAbdul Жыл бұрын
With the greatest respect I disagree. In Python variables are traated as string when input is used and until you specify int, float or boolean -it is treated as string.
@13MrMusic4 жыл бұрын
15:45 First you said C# when you meant python, second it doesnt work not because of the scope but because the bool var is set to false and the block didnt run. If you set the boolean to true and run the block then it will print the variable no problem. As far as I understand the scope of variables becomes an issue when working with functions.
@crucifixxx49604 жыл бұрын
It won't. Even if he set it to true, it wouldn't be able to use that variable since its declared in a block. If the set the variable to global, then it would work, but he is right here.
@laniakea15013 жыл бұрын
@@crucifixxx4960 do you even python? try this: if True: a=0 print(a)
@nielhaasbroek36814 жыл бұрын
Hi, do you think JavaScript is good for a beginning?
@Saleca4 жыл бұрын
I start using c# because of unity but I now think python is a better language, is that accurate? Knowing both of them is there a reason other than unity to keep using c# over python?
@DevlogBill2 жыл бұрын
I am familiar with JavaScript and Python. Wow programming in C# is so much work? I was considering by the end of this year to dive into the .NET environment but watching your video I see that C# is so much harder than JavaScript. I struggled learning JavaScript I have a feeling learning C# is way harder, am I correct? How hard and long is it to learn the .NET framework and C# for web development?
@TheMetalkon2 жыл бұрын
C# is not very complicated once you get used to it
@DevlogBill2 жыл бұрын
@@TheMetalkon Thanks Metalkon, I am guessing for web development full stack the hardest part is learning .NET not so much the syntax of the language?
@nickareekadan73135 жыл бұрын
Might be a dumb question but didn't you set the variable "doit" = to False the second time so wouldn't the logic of the if statement be... doit = False Print ('checking...') if doit ( which is now = to False): doit = False Print("blah") Shouldn't it print the if statement because doit is equal to False? I think I'm just confused..
@BiancaAguglia5 жыл бұрын
if doit actually means if doit == True (Also, keep in mind that doit = False means you assign the value 'False" to the variable doit, whereas doit == False means you're checking if variable doit is 'False. That can be a bit confusing when you first learn Python. ) If you want to understand this better, try the code the following three ways: 1. doit = False Print ('checking...') if doit: doit = False Print("blah") 2. doit = False Print ('checking...') if doit == True: doit = False Print("blah") 3. doit = False Print ('checking...') if doit == False: doit = False Print("blah") You'll see that ways no. 1 and no. 2 work the same. Way no. 3 prints out 'blah'. 😊 (You don't have to use doit = False inside the if blocks, but I left it there to match the code we started with.)
@nickareekadan73135 жыл бұрын
@@BiancaAguglia this actually helped my brain so much haha thank you!
@BiancaAguglia5 жыл бұрын
@@nickareekadan7313 Very glad to hear that. 😊
@Anon-te2bz5 жыл бұрын
@@nickareekadan7313 Or you can put it this way, double equal sign, or " == " means "equal", which is used to check something. While a single equal sign, or " = " is to assign data types. As a newbie myself, I made the same mistake thinking that " = " means equal to.
@jaymaas51145 жыл бұрын
Jabrils, Just finished watching your first four videos. Enjoying your content. I am attending Lambda School for Full Stack Web, but really would like to get a head start on Python and C#. I am also fascinated with Data Science and Machine Learning and enjoyed your other videos on those as well. I can say that after 11 weeks of full time schooling so far, that I still picked quite a bit up from the first 4 videos. Really interesting how C# and Python compare. I have been using mostly JavaScript, object orientated programming is familiar for me. What I enjoyed the most about your videos so far- Your content matches up with those you've done before, so A+ Teaching C# and Python side by side was a great experience Length of videos Where I think you should concentrate- Scripting your videos to have the biggest impact, you could really capitalize on keeping the same length for your videos and increasing the amount of depth at certain points (i.e. explaining an assignment operator, default lines inside of C#) The C# screen's font size could be larger, the = is pretty blurred Spend maybe just a bit more time on how to set up a fresh app for both C# and Python. Maybe just a quick revisit at the beginning of video #4 Can't wait to make my first program with the next tutorial! I will try and leave some more comments for you. Very excited that I decided to follow you on twitter. I have been watching your channels page like a hawk for new content.
@BiancaAguglia5 жыл бұрын
Best wishes with the Lambda school program. 😊 Was it hard to get accepted?
@jaymaas51145 жыл бұрын
@@BiancaAgugliaIt takes some work for sure if you do not have a background in it like me. If you are interested definitely get in contact with them! I love it
@BiancaAguglia5 жыл бұрын
@@jaymaas5114 Thank you. I'll contact them. 😊
@beachboardfan95445 жыл бұрын
Why do coders never have anything nice to say about each others code?
@beachboardfan95445 жыл бұрын
Dunno about that, where I work, end results have come out worse with the same amount of bitching.
@dudds66995 жыл бұрын
in C# var is your friend if you assign it a value.
@lythd5 жыл бұрын
This is the first video I've seen from you and I want to say that this was a very good video. I am a java developer but I'm looking for another language (just so i can more easily relate to other developers). I've coded a tiny bit in python and I was wondering if I should switch to C# and this video was very informative thank you! The only thing was that you used casting incorrectly, casting is changing a data type to another data type, an easy example would be an int to a float or vice versa, so like the random function (at least in java) returns a float but let's say you want to use an int you could cast it using *int random = (int) Math.random();* what you meant to say was just declaring the type. However since casting works the same way in C# vs Python (as far as I understand that might be wrong) I don't have a problem with it. Great video tho, I subbed and I can't wait to watch more of your videos!
@Christobanistan3 жыл бұрын
Just to entice you over to C#, you can write a condition like so: if (a is < 4 and < 0) { ... } Really. It's pattern matching is pretty great.
@lythd3 жыл бұрын
@@Christobanistan thank you, this was a while ago and i use c# quite a bit
@jayxofficial51264 жыл бұрын
Bro you should do more of these
@franciscomenjivar70995 жыл бұрын
so when I click run for the python code, I get no output, like i get the running and done lines but nothing in between. How do I fix this?
@CatChrist5 жыл бұрын
For anything to show in console, use print(variable_name) or print("Test!") in Python 3+
@franciscomenjivar70995 жыл бұрын
Nvm I figured it out y'all, you have to save the script before pressing run
@Camdennnn4 жыл бұрын
VS Code is not an IDE, it is a text editor.
@ikec-pw5sb5 жыл бұрын
Is it me or with software, did you patch this whole tutorial series?
@davidsewilliams4 жыл бұрын
For the changes to update when you press the play button in Python apparently you have to save first. I turned on Autosave. Is that recommended?
@guillermoolivan22974 жыл бұрын
Does the ide matter? Can I program games in Unity using C# in VScode?
@vishalsrivastav50715 жыл бұрын
Which IDE would you suggest for Machine learning using Python?
@vishalsrivastav50715 жыл бұрын
@ProfesorYT I'll surely check pycharm out. Hope it meets my requirements, Thanks. 🙂
@Maskrade3 жыл бұрын
on C# you can just use the dynamic keyword, but Intellisense won't work correctly in the way you'd expect.
@roadtoonesubscriber41514 жыл бұрын
I know c# and I wanted to make some bots and programs with automation and I see most of them are made with python. Is it only because it s simpler or there is a specific reason why I should use python and other progr languag for bots and automation?
@chigozirimifebi48845 жыл бұрын
Whenever I run the code, my output says "'python' is not recognized as an internal or external command, operable program or batch file." I've tried going into Adanced System Settings on my computer to change the Path, but it still shows the same output. Can anyone help me with this problem?