All Activity

This stream auto-updates     

  1. Earlier
  2. vijadhav321

    App_Code folder

    Can we add code files of different languages in App_Code folder?
  3. Thanks. Its working now :)
  4. Looks like extra () around print ()
  5. Good evening, while i am running on cmd I am seeking the syntax error on main(). my code is as below: def main() : operation = input ("what do you wnt to do (+,-,*,/): ") if(operation != "+" and operation != "-" and operation != "*" and operation != "/"): #invalid operation print("You must enter a valiid operation") else: var1 = int(input("Enter num1: ")) var2 = int(input("Enter num2: ")) if(operation == "+"): print(add(var1, var2)) elif(operation == "-"): print(sub(var1, var2)) elif(operation == "*"): print(mul(var1, var2)) else: (print(div(var1, var2)) main()
  6. C++ As a 2nd Language

    C++ For Large, Real-time Embedded, Safety-Critical Systems

    Hello, Can anyone point me to a C++ playlist intended for large, real-time embedded, safety-critical systems? I am an Ada software developer new to C++ and have found the YouTube playlist C++ Beginners Tutorials at kjd Electronics very helpful. Large, real-time embedded, safety-critical systems have particular issues. By large, real-time embedded I mean at least half a million lines of code running on multiple tasks at different rates. Different portions of vertical and lateral guidance software are time-sliced to run at 1, 5, 10 and 20 hertz. Flight planning software is time-sliced to run at 1 and 5 hertz. Navigation at 1, 5 and 10 hertz. These different software functions must share uncorrupted data with each other in this multi-task environment. Safety-critical means we can't just cycle power and try again when the system locks up. If the final system fails at 30,000 feet, then 200 people die and a $100 million plane crashes. You have to juggle phone calls from the next of kin, angry investors, insurance agencies, National Transportation Safety Board and their many, many lawyers. Undefined variables, unbounded arrays, divide by zero, and square root of negative numbers, etc. must be identified and eliminated during development. Then defensive code must still be written because we always assume we have missed some coding error. My industry is warming up to C++ code and so I need to learn it. Can anyone point me to a C++ playlist intended for large, real-time embedded, safety-critical systems?
  7. Keerthi22

    Learning c++ 124

    Hi Mohammad, I'm learning C++ too. I'm a beginner and I'm undergoing C++ Training in Chennai. How is the course going on? It was a bit difficult for me in the beginning. But now slowly I'm able to get the ideas. And I'm gathering a lot of information from here. Regards to you.
  8. Keerthi22

    Newbie here

    Hello all, I'm Keerthi from Chennai. Hope you are all doing well. I'm a newbie to this forum and beginner to programming. Hoping for helping hands here.
  9. Telmo

    Excel and Acess

    Hello, I did install pycharm and python as explained in the videos. I am tryng now to read/write to/from excel and access files. However i am having difficulty in setting up the environment. Any help would be highly appreciated. Thanks
  10. Hello, I am a medical student learning to program. I've started Haskell, R, and now Python. I am an absolute beginner. When using Haskell, I can open the Terminal app and type in ghci then I once I'm in the Haskell Interpreter (is that what it's called?), I can type :l followed by the path to the script to load a program. I can use the text editor (Atom, in my case) along with Terminal app to check commands that I recently put into the text editor and check them in real-time in the Terminal app. I cant figure out how to do this using python. For example, If I load python from the terminal and get >>> , I cant open a Hello, World program I wrote in my text editor. The only way I can open the program is if my Terminal is set to Fadis-MacBook-Air: ~ cerebrate$: from here i can type "python /Users/cerebrate/desktop/ to run my script; it does display Hello World. But I want to be able to constantly add code to my Atom text file and see it immediately in the Terminal app. If anyone understands my problem, I would be very grateful for any help. Thank you!
  11. ccMom74

    import urlib.request

    I am in need of guidance. I am using my instructor's sample code: import json import urllib.request url = "$$$$$$$$$/forecast10day/q/CA/San_Luis_Obispo.json" req = urllib.request.Request(url) r = urllib.request.urlopen(req).read() data = json.loads(r.decode('utf-8')) # print the raw JSON print("\n") print(data) # print the type of the top level object returned print("\nTop level object is a:",type(data)) # print the top level keys and the type of data they refer to print('\ntop level keys:\n') for next in data: nextData = data[next] print(next,'-->',type(nextData)) # print the keys associated with response print('\nreponse keys -->',data['response'].keys()) When I run the code I get the following error: import urllib.request ImportError: No module named request Why, and how do I fix this?
  12. Hello everyone, I am Tina, and have dabbled in html and css thusfar. I am taking a Comp Sci class that I cannot drop or fail without losing financial aid. I am a widow, and returned back to school at the ripe old age of 39, after losing my husband to cancer. Grief and loss have had a lasting affect on my ability to learn at a rapid pace it seems. I am struggling in my computer science class, and work 2 jobs and go to school so I get about 2 hours a week with the tutors at school. I need help when I am on my own doing my assignments so I thought I would try here. I have an interest in programming, but I think I will need to learn it at a much slower pace than the college level. I am here to ask questions when I get stuck on an assignment, and eventually to go through the lessons posted here.
  13. Dawson

    Some Questions

    and if anyone would be up for chatting about it join this Teamspeak server,, and find the channel "Dawson's shopping lobby" in the Developers section, im there pretty often.
  14. Dawson

    Some Questions

    Hello, Im Dawson. Im new to these forums and pretty new to python programming in general, and i have a few questions. in running this chatbot: with these changes: its being trained atm but im hoping to add some virtual assistant capabilities without voice recognition and was wondering how i would go about that. I know how to make a basic virtual assistant functions like the ones seen here: Im more concerned with where i would put the code. any help would be much appreciated, if you want any more specifics just ask.
  15. Cignare

    New to the forum!

    Hello everyone, just wanted to say hi and introduce myself. My name is Cignare.
  16. Cignare


    Hello everyone, If anyone here has a lot of time in their hands and you have skills in C++,SQL,Linux, VM,Client build let me know. I am kinda stuck on a project and I really need the help. Cignare
  17. shrekismylord

    Problem with hello world

    Try renaming the file Hopefully, that works!
  18. Hello there, I think your Python Training has been completed and you have a great knowledge of Python Language. So, can you tell me which programming Language is an implementation of Python programming language designed to run on Java Platform?
  19. Thanks you! I have always been interested in learning Python and this short series of videos should hopefully help me on my feet!!
  20. Ole

    Strategy Map

    Hi there from Germany, I'm in the consulting business for strategy development. Normally I'm using online tools to help my customers and friends online in a collaboration form... there are many tools to develop strategies p.e. based on Michel Porters five forces or Kaplans balanced scorecard. Also I like Osterwalders strategy Canvas..... But I cannot find easy to handle online tools to devlop a strategy map like a canvas creating it online like a interactive drawing tool. After finishing it should be possible to import data from this map into data base; means to start data collecting with this strategy map structure further on the strategy map should be annotated, means the designed process flows should be marked, linked an so on that you ave more information in this strategy map and you can drill down from this to further management tools and KPIs to see where you are in your business.... Python should be the right tool to realise this step by step Ole
  21. Matthew

    My Code Is Not Working

    Oh my goodness, thanks so much for helping me with all of this - i feel super embarrassed that I didn't see this myself haha but thanks so much!
  22. BigNibba

    My Code Is Not Working

    The variable var1 is missing an extra bracket '(' . int(input("Enter num1: ") **)** (ignore ** there to show what u need to add). And do the same for 'var2'
  23. Matthew

    My Code Is Not Working

    Hey guys, I have been watching kjdelectronics on his python tutorial videos and have recently gotten to the part where you build a calculator, but I'm having trouble in the finalization process of it all. My code seems to be flawed - I keep getting a syntax error and have no idea why because I have copied the code exactly as he presents it in the video. I was wondering if anyone could look at it and tell me where my issue (bug) is located. Here is my code and a screenshot of the syntax error. #Returns the sum of num1 and num2 def add(num1, num2): return num1 + num2 #Returs the result of subtracting num1 - num2 def sub(num1, num2): return num1 - num2 #Returns the result of multiplying num1 * num2 def mul(num1, num2): return num1 * num2 #Returns the result of dividing num1 / num2 def div(num, num2): return num1 / num2 def main(): operation = input("What do you want to do? (+, -, *, /): ") if(operation != '+' and operation != '-' and operation != '*' and operation != '/'): #invalid operation print("You must enter a valid operation") else: var1 = int(input("Enter num1: ") var2 = int(input("Enter num2: ") if(operation == '+'): print(add(var1, var2)) elif(operation == '/'): print(div(var1, var2)) elif(operation == '-'): print(sub(var1, var2)) else: print(mul(var1, var2)) main()
  1. Load more activity