Lemon Posted February 4, 2021 Share Posted February 4, 2021 i started coding in python 2 days ago and my brother helped me make something to track water parameters action = input("what do you want to do A.write test, B.read test") if action == ("A"): ph = str(input("whats the ph")) gh = str(input("whats the gh")) kh = str(input("whats the kh")) nitrates = str(input("whats the nitrate")) tests = ("\n\nnitrates: %s general Hardness: %s karbonate hardness: %s nitrate: %s "% (ph,gh,kh,nitrates)) optional_tests = input("do you want to log NH3, NO2, PO4, misc") if optional_tests == ("Y"): phosphate = str(input("whats the phosphate")) ammonia = str(input("whats the ammonia")) nitrite = str(input("whats the nitrite")) chlorine = str(input("whats the the chlorine")) copper = str(input("whats the copper")) optional_test = ("\n\nphosphate: %s ammonia: %s nitrite: %s chlorine: %s copper: %s"% (phosphate,ammonia,nitrite,chlorine,copper)) optional_test_file = open("optional_test.txt", "a") optional_test_file.write(str(optional_test)) optional_test_file.close testfile = open("water parameter tracker.txt", "a") testfile.write(str(tests)) testfile.close download the latest version of python https://www.python.org/downloads/ you make a 2 text files called "water parameter tracker.txt" and ""optional_test.txt" make sure they are in the same directory as the program what have you made/working on? 2 Link to comment Share on other sites More sharing options...
Squeegee79 Posted February 4, 2021 Share Posted February 4, 2021 Never used Python myself. I currently code in C#/Razor, Javascript/jQuery/typescript, HTML, CSS. I have used php in the past as well, with a smidge of java. Pretty easy to follow what your code is doing though. I have never used it for help with fish keeping though. Link to comment Share on other sites More sharing options...
Lemon Posted February 4, 2021 Author Share Posted February 4, 2021 8 minutes ago, Squeegee79 said: Never used Python myself. I currently code in C#/Razor, Javascript/jQuery/typescript, HTML, CSS. I have used php in the past as well, with a smidge of java. Pretty easy to follow what your code is doing though. I have never used it for help with fish keeping though. eventually I want to add gui and graphs I tried using c# for making games in unity but there were thing i enjoyed more that I could do with less frustration and time Link to comment Share on other sites More sharing options...
tolstoy21 Posted February 14, 2021 Share Posted February 14, 2021 I’ve used Python in my work for a few years now, but nothing hardcore. I mostly use it for infrastructure automation scripts (along Powershell, BASH, etc). I like Python a lot. I have a little experience with C#, ASP, PHP, etc, but I’m not really much of web or application developer. I do more DevOps automation/workflow kind of things. I prefer python when I have to interact with APIs or am putting something together for a Linux-based environment. It’s a great language to learn. Much easier then when I was young trying to pick up C++ !! Good luck with it! Link to comment Share on other sites More sharing options...
Streetwise Posted February 14, 2021 Share Posted February 14, 2021 (edited) I learned BASIC in grade school, then Pascal in HS, then C in engineering classes, and LISP in architecture classes, which was my favorite programming language. Code that could modify code while running was mind-expanding. I know HTML and CSS for volunteer reasons. I want to come back to Common Lisp. I had a lot of fun writing cellular automata software for art back in the mid-nineties. Edited February 14, 2021 by Streetwise Images 3 Link to comment Share on other sites More sharing options...
Lemon Posted May 20, 2021 Author Share Posted May 20, 2021 (edited) I started autohotkey today, currently my project is @ my friend on discord(chat platform) 30 times and telling him it is time to wake up. maybe I will do something productive with but for it is just fun opening 100 google chromes with 2 clicks Edited May 20, 2021 by quirkylemon103 2 Link to comment Share on other sites More sharing options...
Patrick_G Posted May 20, 2021 Share Posted May 20, 2021 @Streetwise, we must have been in high school around the same time. I learned BASIC for fun in Middle School and then took AP Pascal in High School. By the time I graduated in ‘90 Pascal was a dinosaur. 1 Link to comment Share on other sites More sharing options...
Administrators Cory Posted May 20, 2021 Administrators Share Posted May 20, 2021 WRITELN nerd @Streetwise Link to comment Share on other sites More sharing options...
Lemon Posted May 20, 2021 Author Share Posted May 20, 2021 google isn't working 😔 so now I am using edge 😬 Link to comment Share on other sites More sharing options...
anewbie Posted May 20, 2021 Share Posted May 20, 2021 (edited) I coded for years and years in mostly in C++ and a bit of java, python but in the old days it was macro10. Mostly socket code but a bit of this and that as needed. Hum lets see if i remember a few lines: #include <map> #include <string> void printall(stl:map<int std::string> age) { for(std::map<int,std::string>::it=age.begin(); it != age.end(); it++) { ... } } (of course these days folks forget how to use a basic for loop and just use foreach) - Macro 10 -- hum that's a tough one i don't think i remember macro10 or for that matter bliss10 off the top of my head ... been too many years. Edited May 20, 2021 by anewbie 1 Link to comment Share on other sites More sharing options...
gretamorilia Posted May 21, 2021 Share Posted May 21, 2021 (edited) I have friends which work in software development company, they can help you or read this https://mlsdev.com/blog/hire-app-developer. Custom software application development involves a series of processes that begin with choosing a software development company that meets the business's specific requirements. The software development company is tasked to create a software application or program that meets the business's needs and specifications. At this stage, the developer(s) work together with the business to determine the software requirements thoroughly, and to come up with an appropriate design. Once the design is finalized, the software development company can now begin work on the software development process. Edited May 24, 2021 by gretamorilia 1 Link to comment Share on other sites More sharing options...
B1gJ4k3 Posted May 21, 2021 Share Posted May 21, 2021 I've been a frontend developer for years (HTML/CSS/Javascript). I took a Python class a few years ago and really enjoyed the automation possibilities. I'm also an ecommerce web manager, so it's since saved me hundreds of hours of work automating repetitive tasks like renaming images, downloading files and categorizing items to sell on the web. I really geek out writing little scriptlets to chunk through large amounts of data and manipulate it so that it works for what I need it to. My latest project is kind of a dashboard display for a TV mounted on the wall in my kitchen. Currently, it's got a Google calendar integration, a meal planner, a countdown, weather forecast, notes, basketball scores and messaging capabilities. I'm working on trying to find some cool way to display my water parameters there, but I haven't had the time to complete. And I keep getting more tanks, so that widget keeps getting bigger... 1 Link to comment Share on other sites More sharing options...
Lemon Posted May 21, 2021 Author Share Posted May 21, 2021 2 hours ago, gretamorilia said: I have friends which work in software development company, they can help you. with google being broken? my one of my friends helped my fix it last night Link to comment Share on other sites More sharing options...
Arcite Posted May 21, 2021 Share Posted May 21, 2021 On 2/4/2021 at 3:08 PM, quirkylemon103 said: eventually I want to add gui and graphs I tried using c# for making games in unity but there were thing i enjoyed more that I could do with less frustration and time I would recommend switching to a `csv` file and treat each day of tests as a row. It will make it a lot easier to plot the data on graphs later. Check out this link and scroll down to "Writing CSV files Using csv.writer()" for a quick guide on how to do it. Then you can use `matplotlib` to make graphs or use pandas to do trend analysis. Let me know if you have any questions, I'm a full-stack developer and have been coding since middle school 🙂 2 Link to comment Share on other sites More sharing options...
Lemon Posted May 21, 2021 Author Share Posted May 21, 2021 (edited) 19 minutes ago, Arcite said: I would recommend switching to a `csv` file and treat each day of tests as a row. It will make it a lot easier to plot the data on graphs later. Check out this link and scroll down to "Writing CSV files Using csv.writer()" for a quick guide on how to do it. Then you can use `matplotlib` to make graphs or use pandas to do trend analysis. Let me know if you have any questions, I'm a full-stack developer and have been coding since middle school 🙂 that looks . . . complicated, I am not experienced at coding at all, I haven't really done anything with programming except some super basic stuff in autohotkey since the water parameter tracker. the issue is I start a project then I don't come back to it. does anyone have idea on a simple project I could work on to get better at python? Edited May 21, 2021 by quirkylemon103 Link to comment Share on other sites More sharing options...
B1gJ4k3 Posted May 21, 2021 Share Posted May 21, 2021 (edited) Working with CSVs in Python isn't too bad once you get the hang of it. You're basically doing the same thing you're doing with the .txt file, just with a CSV. And if there's one thing that makes sense to keep in a table, it's water parameters import csv # if you're opening a new file, it would be output = open('water-parameters.csv', 'w') output = open('water-parameters.csv', 'a') writer = csv.writer(output, delimiter=',', quotechar='"', quoting=csv.QUOTE_ALL) # if you don't already have a header row writer.writerow(['Date', 'PH', 'GH', 'KH', 'nitrates', 'NH3', 'NO2', 'PO4', 'misc']) rowOutput = [thedate, theph, thegh, thekh, thenitrates, theNH3, theNO2, thePO4, themisc] # you can also do writer.writerows if you have a list of lists (multiple lines to write) writer.writerow(rowOutput) Edited May 21, 2021 by B1gJ4k3 1 Link to comment Share on other sites More sharing options...
Streetwise Posted May 25, 2021 Share Posted May 25, 2021 On 5/20/2021 at 4:08 PM, Cory said: WRITELN nerd @Streetwise Mom, Cory called me a nerd! 😉 I was the hotshot programmer in my kindergarten class. We had a Commodore PET, the precursor to the VIC-20, and then the Commodore 64. I wrote a BASIC program to count up indefinitely. Then I took it to the next level and made it count up by tens. @Patrick_G, I think we might be the last gasp of Generation X. Almost all of my tech knowledge has periodically expired and been replaced, except for TCP/IP, DNS, *nix/BSD terminal commands, and troubleshooting steps. Besides my work WiFi, network, firewall stuff, my personal tech pride goes into building and running this Drupal/CiviCRM site as a volunteer: https://lcyc.info 1 Link to comment Share on other sites More sharing options...
Lemon Posted June 1, 2021 Author Share Posted June 1, 2021 On 5/25/2021 at 4:35 PM, Streetwise said: Mom, Cory called me a nerd! 😉 I was the hotshot programmer in my kindergarten class. We had a Commodore PET, the precursor to the VIC-20, and then the Commodore 64. I wrote a BASIC program to count up indefinitely. Then I took it to the next level and made it count up by tens. yesterday I made a autohotkey script to count 1 by 1 and post(not on anything public, I had permission from the server owner) every 10 numbers also I have been watching tom scott who has some good programming videos one of my favorites now I am working on making games . . . for projects besides aquarium I have the attention span of a day 🤣 Link to comment Share on other sites More sharing options...
Lemon Posted July 20, 2021 Author Share Posted July 20, 2021 I made something that converts .txt files to mp3 in the most dead inside sounding tts voice currently I have converted so random sentences and the entire bee movie script 1 Link to comment Share on other sites More sharing options...
Jungle Fan Posted July 20, 2021 Share Posted July 20, 2021 Funny how we all use the same language but it means different things to different people, I too learnt what way back then was referred to as programming in Basic, some Pascal, and Cobol, haven't used it much since. In another life as a nurse your first and foremost concern was to keep your patients from coding, the worst of which was Code Blue meaning the patient was apneic (without breath) and pulseless, it also meant a team of us would come barreling down the hallway pushing what was referred to as a crash cart with a defibrillator, and appropriate meds. I know intuitively that "coding" on this forum would not refer to that kind of coding, yet for a split second my brain went to that subject first. Just goes to show how strongly, and deeply a trained physical emergency routine can be buried in our brains, and weird when it really sinks in and you realize you got conditioned by your work. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now