Search Result

Collapse
3 results in 0.0013 seconds.
Keywords
Members
Tags
spaces
  •  

  • growthndevlpmnt
    started a topic How to format spaces in output?

    How to format spaces in output?

    Code:
    dim = int(input("Enter the size of the diamond: "))
    area = int(input('Enter the numer of times to be printed: '))
    
    def diamond(size, times):
    ***for j in range(times):
    *******for i in range(size):
    ***********print (" "*(size-i) + "* " * i)*times
    
    *******for i in range(size+1):
    ***********print (" "*(i) + "* "*(size-i))*times
    ...
    See more | Go to post

  • ezechiel
    started a topic problem with spaces in directory name
    in Perl

    problem with spaces in directory name

    Hi everyone,

    I have a question about spaces in directory names.
    If I want to use mkdir something, everything works out, but in this case:
    Code:
    #!/usr/local/bin/perl
    #
    use warnings;
    
    $homedir = "C:/SCRIPT/CJ0249A.1/\"Project Information\"";
    $file = "$homedir/exist.txt";
    
    if (-e "$file")
    {
            print ("it exists");
    ...
    See more | Go to post

  • uicouic
    started a topic Validating spaces in a textbox

    Validating spaces in a textbox

    Hi all. Need help with validating spaces in a textbox using JavaScript. The textbox cannot contain just spaces only.

    If not, upon clicking a save button it will display an alert: "Spaces only not allowed."

    Please advise, thanks. Any help greatly appreciated.
    See more | Go to post
Working...