• Breaking News

    Tuesday, February 20, 2018

    I want to create a new trash can for linux but not sure how to go about it Ask Programming

    I want to create a new trash can for linux but not sure how to go about it Ask Programming


    I want to create a new trash can for linux but not sure how to go about it

    Posted: 20 Feb 2018 04:57 PM PST

    Okay so I want a program to be made for Linux. I want to create a new trash can or alter the existing one. Basically, what I want is to be able to drag a file to the trash can and once I do, it'll automatically execute the command:

    shred -zun 100 (file)

    On the given file. Why? Because data from trash cans can be recovered and I do not want to execute the shred command for every single file, it's tedious. I am a very private/paranoid person and I don't ever want to worry about my data/files after I hit the delete button. I'm not sure how difficult this task is or isn't, but I know very little programming. Like week 1 worth of python, C and HTML/CSS so I doubt it's something I could do. Im not sure if this would involve creating a whole new program or just something I could do in Linux like altering the current trash can from the command line. I dug deep on Google and don't see anything on there about a new trash can or anything. Only thing I see is just regular trash can, the shred command or some gui program that will do that but nothing close to what I'm looking for. If anyone has any ideas as to how to go about this then that'd be great! Anything is appreciated. Thank you

    submitted by /u/gh0zt_code
    [link] [comments]

    C# Syntax error help

    Posted: 20 Feb 2018 07:46 PM PST

    Sorry, I'm very new to C# and having a bit of trouble figuring out the problem with my code. I received the error code "CS1003 Syntax error, ',' expected"

    I'm trying to calculate the amount of fertilizer needed for an area with the dimensions being input by the user. I have the console open and ask for input, but it closes after user inputs the % of nitrogen they are using. Can someone explain where I'm going wrong here?

    //Start Here//

    using System;

    namespace Yardwork

    {

    public class YardWork

    { public static void Main() { //gather length and width// Console.WriteLine ("What is the length of your lawn in feet:"); double length = Convert.ToDouble(Console.ReadLine()); Console.WriteLine ("What is the width of your lawn in feet:"); double width = Convert.ToDouble(Console.ReadLine()); //gather % of nitrogen in fertilizer// Console.WriteLine("What is the percentage of Nitrogen in the fertilizer you will use:"); double Nitrogen = Convert.ToDouble(Console.ReadLine()); //calculate area of yard// double area = length * width; //calculate nitrogen needed// double NitroNeed = area / 1000; //calculate nitrogen percentage// double NitroPer = Nitrogen / 100; //calculate fertilizer needed// double fertilizer = NitroNeed / NitroPer; //Display amount needed// Console.WriteLine("You will need :"fertilizer", pounds of fertilizer"); Console.ReadLine(); } } 

    }

    submitted by /u/NotCapnCrunch
    [link] [comments]

    I am running into problems with my code in my aspx.cs document. If someone could help me I would be much appreciated!

    Posted: 20 Feb 2018 10:02 PM PST

    I am trying to create a search bar that goes through spotify that allows users to search for artists and returns the artists top 5 albums to a table on a web page.

    Basically: A web page, search bar, button, and table.

    I have this stuff created but I am running into this error: HTTP 500.Error processing request. when I press the search button.

    Here is my code:

    using System; using System.Collections.Specialized; using System.Net; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Task_3 { public partial class Default : System.Web.UI.Page { public void button1Clicked(object sender, EventArgs args) { button1.Text = "Search"; string[] hello = {"Hello, World"}; MainClass.Main(hello); MainClass.SetInput(search1.Text); TableRow tRow = new TableRow(); TableRow tRow2 = new TableRow(); TableCell album1 = new TableCell(); TableCell artist1 = new TableCell(); TableCell date1 = new TableCell(); TableCell tracks1 = new TableCell(); TableCell popularity1 = new TableCell(); TableCell id1 = new TableCell(); TableCell album2 = new TableCell(); TableCell artist2 = new TableCell(); TableCell date2 = new TableCell(); TableCell tracks2 = new TableCell(); TableCell popularity2 = new TableCell(); TableCell id2 = new TableCell(); album1.Text = "Album Name"; artist1.Text = "Artist Name"; date1.Text = "Date of Release"; tracks1.Text = "Number of Tracks"; popularity1.Text = "Popularity"; id1.Text = "ID"; tRow.Cells.Add(album1); tRow.Cells.Add(artist1); tRow.Cells.Add(date1); tRow.Cells.Add(tracks1); tRow.Cells.Add(popularity1); tRow.Cells.Add(id1); Table1.Rows.Add(tRow); tRow2.Cells.Add(album2); tRow2.Cells.Add(artist2); tRow2.Cells.Add(date2); tRow2.Cells.Add(tracks2); tRow2.Cells.Add(popularity2); tRow2.Cells.Add(id2); Table1.Rows.Add(tRow2); album1.BorderStyle = BorderStyle.Solid; artist1.BorderStyle = BorderStyle.Solid; date1.BorderStyle = BorderStyle.Solid; tracks1.BorderStyle = BorderStyle.Solid; popularity1.BorderStyle = BorderStyle.Solid; id1.BorderStyle = BorderStyle.Solid; Table1.BorderStyle = BorderStyle.Solid; Table1.Visible = true; id2.Text = MainClass.getData(1); } } class MainClass { static string input; static string [] data = new string[25]; public static void fillData(){ for (int j = 0; j < 25; j++) { data[j] = "" + j.ToString(); } } public static string getData(int j){ // fillData(); return data[j]; // return input; } public static void SetInput(string str){ input = str; } public string GetInput(){ return input; } public static void Main(string[] args) { fillData(); string search = input;//"Muse"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api.spotify.com/v1/search?q=" + search + "&type=artist"); request.Method = "GET"; request.ContentType = "application/json"; request.Accept = "application/json"; request.Headers.Add("Authorization", "Bearer " + "BQAil0rfnNMRBwu1WxL9gjkF_dVMu6YDcREvOtjOXkiYmi9Kr60Hd7b0JMO2R4PWfWi3kon4N95YJYY9-QBffWSNJxtHkKD9-El9j2Gf3onexoMZBoY5AHJA6jC6ZixJaWvmyhH4qqbAJCw"); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); // causing the error on website string myResponse = ""; using (System.IO.StreamReader sr = new System.IO.StreamReader(response.GetResponseStream())) { myResponse = sr.ReadToEnd(); sr.Close(); response.Close(); } string[] idStrings = new string[50]; int index1; for (int i = 0, startIndex = 0; i < 50; i++) { idStrings[i] = ""; index1 = myResponse.IndexOf("id\" : \"", startIndex); if (index1 == -1) break; else idStrings[i] = myResponse.Substring(index1 + 7, 22); startIndex = index1 + 30; } string id = "4aawyAB9vmqN3uQ7FjRGTy"; HttpWebRequest idRequest = (HttpWebRequest)WebRequest.Create("https://api.spotify.com/v1/albums/" + id); idRequest.Method = "GET"; idRequest.ContentType = "application/json"; idRequest.Accept = "application/json"; idRequest.Headers.Add("Authorization", "Bearer " + "BQAil0rfnNMRBwu1WxL9gjkF_dVMu6YDcREvOtjOXkiYmi9Kr60Hd7b0JMO2R4PWfWi3kon4N95YJYY9-QBffWSNJxtHkKD9-El9j2Gf3onexoMZBoY5AHJA6jC6ZixJaWvmyhH4qqbAJCw"); HttpWebResponse idResponse = (HttpWebResponse)idRequest.GetResponse(); string myIdResponse = ""; using (System.IO.StreamReader sr = new System.IO.StreamReader(idResponse.GetResponseStream())) { myIdResponse = sr.ReadToEnd(); } Console.WriteLine(myResponse.ToString()); for (int i = 0; i < 50; i++) { Console.WriteLine(idStrings[i]); } } } } 

    Any help would be appreciated, also if someone could help me with my next steps.

    I have some temp data inside just to see if things work.

    submitted by /u/JediNinjas
    [link] [comments]

    What are you experiences with Cloud ERP Software and their extension/addon support?

    Posted: 20 Feb 2018 07:51 PM PST

    I have become pretty interested in the Cloud based ERP market and I'd like to know which vendors have decent APIs for building third party extensions?

    I have been looking into vendors such as Microsoft Dynamics 365 and SAP S4HANA.

    Any vendors that are relatively developer friendly?

    Thanks for the insights.

    submitted by /u/_smurf_village_
    [link] [comments]

    Populate matrix without any adjacent identical elements

    Posted: 20 Feb 2018 07:19 PM PST

    I am trying to populate a 2 dimensional array, lets say a 4x4. The data I am using to fill this array comes from a set of 16 numbers, not all of which are unique. Does anyone know a way to populate the 4x4 array, while ensuring that no 2 adjacent elements are identical? My goal is to write this in Java, but at this point, even a generic algorithm would be incredibly helpful.

    submitted by /u/Who-Pooped-The-Bed
    [link] [comments]

    why is my java program not returning anything?

    Posted: 20 Feb 2018 06:51 PM PST

    For some reason, I don't get an output with the main method when I try to run the convolution2d program. What am I doing wrong here?

    //main program public class driverconv { public static void main(String[] args) { // TODO Auto-generated method stub convolution ce = new convolution(); double[][] m1= {{1,2},{3,4}}; double[][] m2= {{1,1},{1,1}}; System.out.println(convolution.convolution2D(m1, 2, 2, m2, 2, 2)); } } 

    //convolution 2d program

    import java.applet.*; import java.awt.*; import java.awt.image.*; import java.net.*; import java.util.*; import java.io.*; import java.lang.Math.*; import java.awt.Color.*; public class convolution { /** * Default no-arg constructor. */ /** * Takes an image (grey-levels) and a kernel and a position, * applies the convolution at that position and returns the * new pixel value. * * @param input The 2D double array representing the image. * @param x The x coordinate for the position of the convolution. * @param y The y coordinate for the position of the convolution. * @param k The 2D array representing the kernel. * @param kernelWidth The width of the kernel. * @param kernelHeight The height of the kernel. * @return The new pixel value after the convolution. */ public static double singlePixelConvolution(double [][] input, int x, int y, double [][] k, int kernelWidth, int kernelHeight){ double output = 0; for(int i=0;i<kernelWidth;++i){ for(int j=0;j<kernelHeight;++j){ output = output + (input[x+i][y+j] * k[i][j]); } } return output; } public static int applyConvolution(int [][] input, int x, int y, double [][] k, int kernelWidth, int kernelHeight){ int output = 0; for(int i=0;i<kernelWidth;++i){ for(int j=0;j<kernelHeight;++j){ output = output + (int) Math.round(input[x+i][y+j] * k[i][j]); } } return output; } /** * Takes a 2D array of grey-levels and a kernel and applies the convolution * over the area of the image specified by width and height. * * @param input the 2D double array representing the image * @param width the width of the image * @param height the height of the image * @param kernel the 2D array representing the kernel * @param kernelWidth the width of the kernel * @param kernelHeight the height of the kernel * @return the 2D array representing the new image */ public static double [][] convolution2D(double [][] input, int width, int height, double [][] kernel, int kernelWidth, int kernelHeight){ int smallWidth = width - kernelWidth + 1; int smallHeight = height - kernelHeight + 1; double [][] output = new double [smallWidth][smallHeight]; for(int i=0;i<smallWidth;++i){ for(int j=0;j<smallHeight;++j){ output[i][j]=0; } } for(int i=0;i<smallWidth;++i){ for(int j=0;j<smallHeight;++j){ output[i][j] = singlePixelConvolution(input,i,j,kernel, kernelWidth,kernelHeight); //if (i==32- kernelWidth + 1 && j==100- kernelHeight + 1) System.out.println("Convolve2D: "+output[i][j]); } } System.out.println(output); return output; } } 
    submitted by /u/metalloidica
    [link] [comments]

    [Non-Programmer] Is there a Way to Write a Script to a Web Based App (written in JS?)

    Posted: 20 Feb 2018 06:44 PM PST

    First apologies, I'm sure I pissing someone off. But I want to learn so I can help my coworkers. We work in a production environment where we have a case order slip, we log in to a web based app that is written in js I believe. To try to give a better picture of what I want to achieve let me describe the steps and then what I want to do. I really appreciate any help despite my ignorance. If this should be cross posted please let me know.

    First technician logs in with there ID Then then the type in a 4 digit number for each task they completed. All tasks are available to scroll through but typically you know the numbers to the tasks so you don't have to scroll and check each box you need. After we have checked all the boxes that apply we scan the barcode to all the case slips that apply to the selected tasks. So typically we will scan 5 or 6 case slips as the multiple selected tasks apply. We have to hand enter all the task numbers and often we just repeat the same ones multiple times a day. Is there any way to write a script or something where I can make it automatically check off the same 5 tasks codes I or we always use?

    Again apologies if I just made zero sense, I can try to clarify if at all possible.

    submitted by /u/AntiquePatina
    [link] [comments]

    java convolution program not working

    Posted: 20 Feb 2018 05:58 PM PST

    For some reason, I don't get an output with the main method when I try to run the convolution2d program. What am I doing wrong here?

    //convolution 2d program

    public static double [][] convolution2D(double [][] input, int width, int height, double [][] kernel, int kernelWidth, int kernelHeight){ int smallWidth = width - kernelWidth + 1; int smallHeight = height - kernelHeight + 1; double [][] output = new double [smallWidth][smallHeight]; for(int i=0;i<smallWidth;++i){ for(int j=0;j<smallHeight;++j){ output[i][j]=0; } } for(int i=0;i<smallWidth;++i){ for(int j=0;j<smallHeight;++j){ output[i][j] = singlePixelConvolution(input,i,j,kernel, kernelWidth,kernelHeight); //if (i==32- kernelWidth + 1 && j==100- kernelHeight + 1) System.out.println("Convolve2D: "+output[i][j]); } } return output; } //main program public class driverconv { public static void main(String[] args) { // TODO Auto-generated method stub convolution ce = new convolution(); double[][] m1= {{1,2},{3,4}}; double[][] m2= {{1,1},{1,1}}; System.out.println(convolution.convolution2D(m1, 2, 2, m2, 2, 2)); } } 
    submitted by /u/metalloidica
    [link] [comments]

    Zero downtime database deployments

    Posted: 20 Feb 2018 03:40 PM PST

    I'm struggling to find good articles on zero downtime database deployments. The ones I looked at all describe the importance of backwards compatible changes but seem to ignore how it fits into an overall CI/CD process. I am astounded that there is so little literature on this; I suspect ANY company with a database would have to implement something similar...

    • What does your zero downtime database deployment look like?
    • How often do you deploy?
    • How do companies such as Facebook/Amazon/Netflix achieve zero downtime upgrades?
    • Which tooling do you use?
    • Is anyone doing it with AWS RDS (PostgreSQL)?

    I'd like to enable my team to individually contribute schema changes (git). Pull requests should be able to apply any pending changes seamlessly before running integration tests.

    Am I asking for too much?

    submitted by /u/mariotacke
    [link] [comments]

    Can anyone provide some advice on configuring an SQL and PostgreSQL Database into a Spring Boot Application.

    Posted: 20 Feb 2018 10:52 AM PST

    I currently have an SQL database configured to my Spring application and have also included a PostgreSQL database configuration in my application.properties file where I provide the URL, password and username for the DB. In the PostgreSQL DB is a table with records already put into it.

    However, where I'm running into trouble is finding out documentation online for how I actually communicate with the PostgreSQL DB with the use of CRUD operations, (like with how I'm communicating with the SQL DB). Does anyone have any tips?

    submitted by /u/cpjmullen
    [link] [comments]

    How to split a long article with codeigniter

    Posted: 20 Feb 2018 10:34 AM PST

    so let's say i have a database with a table named 'post' in this table there is a column named 'news' and this 'news' column is filled with a very long article. how do you split the article inside this 'news' column into multiple pages ? most ci pagging tutorial i found on internet are using the row for their paging method not the column.

    please help me fellow redditors

    submitted by /u/jimimy66
    [link] [comments]

    Which approach is better for this project?

    Posted: 20 Feb 2018 08:16 AM PST

    By the end of this year, I need to conclude a project solving a problem existing where I work. This is a college project so the idea is to learn something new and deliver at least 80% the solution working properly.

    I Identified a problem with commission calculation scenario. Today this is a manual process, so my idea is to create a web interface to get user inputs like how much should be calculated for each store and paid to the sellers and managers, promotions to a specific product and other inputs that will impact directly the calculation.

    My Idea is to extract sells and other information like store name, seller code and import to my database, from that, could show to the user how many sells happened from each store and give him the possibility to do the calculation automatically and generate files for our HR system make the payments.

    So here are the technologies I was thinking to develop this:

    *T-SQL: To Extract information and do calculations, update tables and other database operations. I have some experience with T-SQL and this is the technology that is already used at the company server.

    *PHP: To access the database, receive user inputs, provide a login and other operations like this. I know a little bit about PHP, I know how to create pages, host a server and things like this, but never developed a complete project based on this. My Idea is to use a framework like CodeIgniter and create pages using its patterns. So to conclude, I would like to receive opinions or ideas to change the path I'm following since We are at the beginning of the year I Could change the technology used for this project.

    Thanks a lot for the help and sorry for the long question.

    submitted by /u/brunodantas01
    [link] [comments]

    Regex (ab*)*

    Posted: 20 Feb 2018 11:42 AM PST

    So for the expression (ab*)* can the outer star only duplicate one version of the inner expression?

    That is the inner expression algebraically is abn so we could have say 2 sample outputs of "a" and "abb". Using the outside star operator those could be made to be say "aaaa" or "abbabbabb" but could you do something like "aaabb"?

    submitted by /u/theodb
    [link] [comments]

    [Java] Class constructor/methods proper setup?

    Posted: 20 Feb 2018 11:18 AM PST

    Hi there,

    I'm in my first year learning Computer Programming, and I'm having trouble understanding Class constructors in Java.

    Basically I have a lab due where I need to create a class, and submit it tested and with validated methods.

    I created a new class in the main method, and I had it returning the submitted values just fine, but my validation in my methods wasn't working. It wouldn't throw any of the exceptions. So I figured my constructor was making the methods redundant, by assigning the passed in value without sending it through the method first. So I deleted the constructor. Now I'm getting null values with methods I thought I had set up properly. I'm just overall confused...

    P.S. I understand my current getAge() method has flawed logic, but I couldn't get Period.between to work.

    Any help would be appreciated, thank you.

    package comp100818wassignment1;

    import java.time.LocalDate;

    /** * * @author Meade */ public class Student {

    /** * Create student variables */ private String firstName, lastName, streetAddress, city, postalCode, studentNum; private LocalDate birthday, dateEnrolled, getCurrentDate; private boolean inGoodStanding; public Student(String firstName, String lastName, String streetAddress, String city, String postalCode, LocalDate birthday, LocalDate dateEnrolled, String studentNum) { } public String getFirstName() { if (firstName.isEmpty()) { throw new IllegalArgumentException("Please enter a valid first name."); } else return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getStreetAddress() { return streetAddress; } public void setStreetAddress(String streetAddress) { this.streetAddress = streetAddress; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getPostalCode() { return postalCode; } public void setPostalCode(String postalCode) { this.postalCode = postalCode; } public String getStudentNum() { return studentNum; } public void setStudentNum(String studentNum) { this.studentNum = studentNum; } public LocalDate getBirthday() { return birthday; } public void setBirthday(LocalDate birthday) { if (birthday.isAfter(getCurrentDate)) { throw new IllegalArgumentException("Birthdate is invalid."); } this.birthday = birthday; } public LocalDate getDateEnrolled() { return dateEnrolled; } public void setDateEnrolled(LocalDate dateEnrolled) { if (dateEnrolled.isAfter(getCurrentDate)) { throw new IllegalArgumentException("Your enrollment date" + " is invalid."); } this.dateEnrolled = dateEnrolled; } public boolean isInGoodStanding() { return inGoodStanding; } public void setInGoodStanding(boolean inGoodStanding) { this.inGoodStanding = inGoodStanding; } public int getYearBorn() { return birthday.getYear(); } public int getYearEnrolled() { return dateEnrolled.getYear(); } public int getAge() { int x = birthday.getYear(); int y = getCurrentDate.getYear(); return (y - x); } public String getAddress() { return streetAddress + ", " + city + ", " + postalCode; } @Override public String toString() { return firstName + " " + lastName + " " + studentNum; } 

    } // End Of Student Class

    submitted by /u/Meades_Loves_Memes
    [link] [comments]

    Sending Notification From Windows Desktop App

    Posted: 20 Feb 2018 11:06 AM PST

    I am trying to come up with a way to send notifications to users, the problem is that my program is open source. The easiest way would be to send it via email but I am not aware of a secure way to store SMTP credentials in an open source program.

    Does anyone have any ideas on a free and secure way to send notifications?

    Edit 1: I also don't want to have users enter their own credentials to an SMTP server.

    Edit 2: More information

    • The application is a Windows Form program developed in C#/.NET for desktop.
    • The notifications need to be sent remotely to a phone or email address.
    • The program is a monitor and when a certain condition is met it will send out a notification.
    submitted by /u/Crowley2012
    [link] [comments]

    Default file content in Atom

    Posted: 20 Feb 2018 09:28 AM PST

    Hello. I've recently started doing programming in school, and i'm learning C++. I've used Atom a bit before, so i decided to stick with it rather than going with Visual Studio.

    Anyways. My question is; Is there a way to make a "default startup template" for cpp-files? I find myself adding the same 3-4 lines and the main function every time, so it would save me a lot of frustration if it were a way to make every cpp file have this by default.

    submitted by /u/Monsaki
    [link] [comments]

    Node.js - MongoDb - Angular Best host?

    Posted: 20 Feb 2018 08:11 AM PST

    Can someone advise me the best host for this setup? I'm trying openshift but they dont allow you to have custom domain on the free version

    submitted by /u/throwawaystuff000
    [link] [comments]

    Anagram Time Complexity Problem

    Posted: 20 Feb 2018 08:08 AM PST

    Hi all, Not sure if this is the right sub, sorry if it's not! This has been really bugging me.

    I've heard the following problem in interviews twice now:

    Given a long list of strings, str_list, and a target string, return True if the target string is an anagram of any of the words in str_list

    (Assume multiple queries are possible, so we don't want a solution with early-returns or w/e)

    I've implemented the following solution twice, which I believe to be O(NM) where N is the length of str_list and M is the length of the longest word in str_list.

    def is_anagram(str_list,target): anagrams = set() #O(N) for s in str_list: #O(M) anagrams.add(frozenset(Counter(string).items())) #O(len(target), but we could just check length vs. longest str in str_list, so O(M)) return frozenset(Counter(target).items()) in anagrams ##Total = O(N*M) 

    Each time they've told me that it was decent, but that I could do better with the following version, using sorting:

    def sorted_is_anagram(str_list,target): #O(N) for i,string in enumerate(str_list): #MLog(M) str_list[i] = "".join(sorted(string)) #O(M*NLogN) str_list = set(sorted(str_list)) #O(M(Log(M))) return "".join(sorted(target)) in str_list ##Total = O(N*MLog(M) + M*NLogN) 

    Am I crazy or is their version simply not better? What have I messed up?

    Thank you!!

    submitted by /u/HoldMeReddit
    [link] [comments]

    How do page visit counters that are images work?

    Posted: 19 Feb 2018 11:08 PM PST

    Randomly remembered getting visiter counters from boingdragon.com on my Neopets petpages as a kid and being confused by how they worked. They're gifs that can keep count of how often they're viewed. How do they do that with no extra coding? Can you embed code into an image or something?

    Example I just made: http://cgi.boingdragon.com/count/toskaaa/0.gif

    I'd appreciate an ELI5. Neopets-level HTML/CSS was all I ever got into, but I'm still curious all these years later how the hell these things work.

    submitted by /u/Mouse-Rat
    [link] [comments]

    Should I start learning PHP today.

    Posted: 20 Feb 2018 07:46 AM PST

    YouTube in an IFRAME

    Posted: 20 Feb 2018 03:26 AM PST

    This is my html code

    <!DOCTYPE html> <html> <head> TITOLO </head> <body> <br> <iframe src="https://www.youtube.com" height="600" width="800"></iframe> </body> </html> 

    but i dont see yt in the iframe, i see this https://imgur.com/a/BkpxE Some help? ty

    submitted by /u/ale4224
    [link] [comments]

    Python goto alternative

    Posted: 20 Feb 2018 12:48 AM PST

    Say I wanted to go back to #here if the number was incorrect and do it every time it was incorrect how would I do so

    x = 5 # here userin = int(input("Guess the number 1-10: ")) if userin == 5: print("Correct number") else: print("try again") # i want to add goto here 
    submitted by /u/givemeachickennugget
    [link] [comments]

    No comments:

    Post a Comment